Timeline for How to ssh to a server using another server?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 11, 2021 at 16:18 | comment | added | taxilian | In case someone else finds this question while looking for it -- askubuntu.com/a/1301548/444824 describes a method that works as of OpenSSH 7.3 | |
| Sep 10, 2018 at 6:01 | comment | added | igorsantos07 | pay attention to the keys you are using: the final server still needs to trust the key your client is giving. I had some trouble where the server only trusted the bastion key, and ssh complained about permissions. | |
| Jun 24, 2012 at 23:40 | comment | added | Ulrich Dangel | @jasonwryan ok i added an comment, i don't think it's necessary to add an extra answer as the underlying technique (ProxyCommand) is already described | |
| Jun 24, 2012 at 20:05 | comment | added | jasonwryan | @UlrichDangel you should add that as an answer to the other question: it is not included there. | |
| Jun 24, 2012 at 19:39 | comment | added | Omid | @sr_: You are right! I thought it was mc(midnight commander) | |
| Jun 24, 2012 at 9:48 | comment | added | Ulrich Dangel |
Just for the record newer versions of ssh support the -W option, you can do something like ProxyCommand ssh -W %h:%p gateway instead of depending on nc
|
|
| Jun 24, 2012 at 9:22 | comment | added | sr_ |
There's no need to replace nc there. See, it's used for creating a TCP connection from serverA to serverB, which the ssh serverB command then uses to talk SSH.
|
|
| Jun 24, 2012 at 7:20 | comment | added | Omid | I replaced /usr/bin/nc with ssh. then after it asks for password of serverA I get this error(s): Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). ssh_exchange_identification: Connection closed by remote host | |
| Jun 24, 2012 at 7:10 | history | answered | Daniel Pittman | CC BY-SA 3.0 |