Re:SSH tunnelling for fun and profit: AutoSSH
by Tiksi on Wednesday January 20, 2016 @08:06AM
(#10937747)
On top of that, you can always use a separate user for the tunnel that doesn't have a login shell. Obviously still a problem if someone gets the private keys but not nearly as much so, as they'll basically be limited to tunneling/forwarding.
Re:SSH tunnelling for fun and profit: AutoSSH
by everythingcli on Wednesday January 20, 2016 @08:09AM
(#10937759)
@Tiksi:
Couldn't reply to your thread directly, so here:
It shouldn't be a problem when someone steels your key. At least not when it is protected with a strong password.
As I said, you can and should always use `ssh-agent` and protect all of your keys with a password.
Now that it was mentioned, I am really not sure, if `ssh-agent` also works for processes started by `cron`.
I have many different SSH keys, each with different long passwords.
What u are looking for is `ssh-agent` which can take care of all the password handling.
Also unattended rsync (over ssh) backups rely on no user interaction at all.