Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following problem: I want to connect from a Windows 7 client to a remote Debian 7 Server via an SSH Gateway running on a SLES 11.3 Server. To test the connection I use plink with the following command

plink.exe root@<gatewayserver ip> -nc <destination server ip >:22

I can login on the gateway but after that i just get a prompt saying:

SSH-2.0-OpenSSH_6.0p1 Debian-4

My sshd_config on the gateway server

PasswordAuthentication yes
PubkeyAuthentication yes
UsePriviligeSeparation yes
AllowAgentForwarding yes
Protocol 2

My ssh_config on the gateway server

Host <Dest Server ip range>
StrictHostKeyChecking no
ForwardAgent yes
EscapeChar none
Protocol 2

My sshd_config on the destination server

AllowAgentForwarding yes
Protocol 2
share|improve this question
up vote 0 down vote accepted

i would use something like this:

plink.exe -L 2222:[destination_server_ip]:22 root@[gatewayserver] -N
plink.exe root@ -P 2222

the first one creates an SSH tunnel and opens a local port [2222] which is forwarded to the destination server

EDIT: what you did was just something like

telnet 22

which just opened the port, and waited for you to talk SSH into the console (with in your case you want putty(plink) to do for you ;)

share|improve this answer
Thank you now I understand what I have done wrong – phenom135 Aug 19 '13 at 13:11
I have never used this kind of setup. but i assume you got something wrong with your authentication (according to the last two lines of your link) -> As long as you have your public key installed on the proxy and the host that you are connecting to, and your key is loaded into pageant, This will work. Please note that it is necessary to have publickey authentication with the proxyhost using this method. It is possible to send the password over to the proxy, but I don’t recommend that at all. Are you able to log in to your proxy machine without any password? Is pageant working? – Daywalker Aug 19 '13 at 13:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.