Skip to content
Advertisement

how to create putty shortcut to jump directly to chain ssh? [closed]

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”

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement