I want to access some host from my personal computer, but I have to access an intermediate server first, because the final destination cannot be seen from public internet.
The thing is that I have to do the following to access the final host. From my pc:
ssh username@server
And enter the password. Once I'm in there:
ssh username2@finalhost
And enter another password.
This is pretty cumbersome, specially when doing scp
, because I have to copy the file to the intermediate server before being able to copy it to the final host.
Is there a way to make this process automatic, both for ssh
and scp
commands?