I have to connect to main server by following commands:
ssh user@server1 ssh server2 ssh mainserver1
Is there any shortcut in putty or in another tool that I can store the commands and create shortcut to directly logged into mymainserver1
?
Advertisement
Answer
I got the solution for this as:
/bin/bash -c “sudo ssh -A -t server1 ssh -A -t server2 ssh -A -t server3”