I have an SSH tunnel that I run with autossh to keep it going reliably.
The only issue I have is that I have an encrypted private key which I use to connect. If I want to fork my process to the background, then I never get the opportunity to enter my password and unlock my key.
Is there any way to have autossh fork after I enter my password?
ssh -f -L 5000:localhost:5000 ovh -Nit asks for password. Sameautosshcommand doesn't. – Tom Raganowicz Jan 18 '17 at 21:03ssh-agentwould be a common solution. – David Foerster May 02 '18 at 08:04