2

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?

Zanna
  • 69,223
  • 56
  • 216
  • 327
Thomas
  • 184
  • 6
  • Facing similar issue, when ssh runs like this: `ssh -f -L 5000:localhost:5000 ovh -N` it asks for password. Same `autossh` command doesn't. – Tom Raganowicz Jan 18 '17 at 21:03
  • You could use a key agent to store the decrypted key in memory where SSH can retrieve it. `ssh-agent` would be a common solution. – David Foerster May 02 '18 at 08:04

0 Answers0