Quantcast
Channel: User Matthew Flaschen - Server Fault
Viewing all articles
Browse latest Browse all 40

Answer by Matthew Flaschen for Forward single SSH key to given host

$
0
0

Start up a ssh-agent just for this connection, add the desired key, then SSH in the subshell.

ssh-agent bash -c 'ssh-add /home/username/.ssh/some_key_id_rsa; ssh -A some_host'

Viewing all articles
Browse latest Browse all 40

Trending Articles