Possible Duplicate:
Common multiple SSH connections file handling issue
I used to do something like that often:
home $> ssh user@server1
user@server1's password:
server1 $> ssh user@server2
user@server2's password:
server2 $>
Server2 is available from server1 only, so I have to do stuff like that all time.
So, question is. How can I do 2 consecutive logins in one command?
home $> ssh_many user@server1 user@server2
user@server1's password:
user@server2's password:
server2 $>
