- On local make an RSA key if you haven't already (
ssh-keygen
) - Copy that key into .ssh/authorized_keys on the first (i.e. bastion) server (
ssh-copy-id user@bastion.server
) 2b. Test that you canssh user@bastion.server
and connect without password ssh to bastion.server
and create an RSA key on bastion.server if you haven't already (ssh-keygen
)ssh-copy-id
to the server you want to access (what I am calling real.server) 4b. test that you can ssh from bastion.server to real.server without entering a password
rsync -e "ssh user@bastion.server ssh" user@real.server:/path/to/file /path/to/local/dest
rsync -e "ssh user@bastion.server ssh" /path/to/local/src user@real.server:/path/to/server/dest