Why does sshd give a different identification when connecting through netcat?

Posted by Robbie Mckennie on Server Fault See other posts from Server Fault or by Robbie Mckennie
Published on 2013-07-03T10:40:09Z Indexed on 2013/07/03 11:07 UTC
Read the original article Hit count: 224

Filed under:
|

I have been attempting to create a way to ssh into a machine hiding behind a firewall. I set up my ssh client with the option Proxycommand /usr/bin/ncat -l 2000, and then I connect it to sshd with ncat <client> 2000 -c "sshd -i" on the server. It works in that I can get a shell on the server, but the server sends a different key than when I use normal ssh. So the question is, why? Is the key different when sshd is called in this unusual way?

© Server Fault or respective owner

Related posts about linux

Related posts about ssh