Goal
How to enter ssh private key password only once without having managed by Gnome Keyring. The ssh agent should remain detected every time new terminal spawned or even on tty console CTRL+ALT+F1 and so on.Solutions
We will utilize ssh-add, ssh-agent and little bit shell script commands for achieving the goal.Step 1
First start the authentication agent and redirect the result to a file so can gather the agent information later.$ ssh-agent -s > /tmp/my-ssh-agent.shExecute the file so we have the correct environment variables needed by ssh-add.