How to configure ssh to imitate this:
ssh [email protected] -i /path/to/.ssh/server-1-ssh-key -t ssh [email protected] -i /home/server1-user-name/.ssh/server2-ssh-key
When I execute
I'm login to server1.net with a key from my local machine (
ssh [email protected] -i /path/to/.ssh/server-1-ssh-key
- then I log in to a server with the following IP 10.0.0.10. To do this I use the key (
/home/server1-user-name/.ssh/server2-ssh-key), which is stored on server-1
How should the ssh configuration look like for this case on my local machine?
I tried the following configuration:
ProxyCommand ssh -i /path/to/.ssh/server-1-ssh-key -W %h:%p
But it does not work.