The 'manual' way:
ssh bastion.server (once you logged in, you login to the actual server you trying to get to)
ssh final.destination.server
An easier way:
ssh -t bastion-server ssh -t final.destination.server
With ssh ProxyCommand:
Edit your .ssh/config:
Host bastion
Hostname bastion.server
User your_username
Host final-host
ProxyCommand ssh -q -a -x bastion nc final.destination.server 22
Note: The bastion server needs the nc command installed for this to work.
Now, you can:
ssh final-host
or
scp somefile final-host:/tmp
0 comments:
Post a Comment