On 27 Jan 2012 11:55:40 +0000 (GMT), Jacob Nevins
<
jac...@chiark.greenend.org.uk> wrote:
> pk <p...@pk.invalid> writes:
> >Following all the docs I could find, I'm doing:
> >
> >in the main window: user@internalpc, port 22, protocol SSH
> >
> >in the proxy config panel: local proxy, and local proxy command is
> >
> >plink.exe -i privatekey.ppk user@externalpc -nc %host:%port
> >
> >This is running under Windows 7. However, when I try to connect, I
> >immediately get an error "server unexpectedly closed network connection".
>
> What version of PuTTY?
0.62, downloaded from the official page.
> Have you tried specifying the full path to plink.exe and to your .ppk
> file in the "Telnet command, or local proxy command" field?
>
> I quickly tried this with PuTTY 0.62 on Windows XP with the full path
> (but without the -i); it worked for me.
I hadn't, now I did, and it fails in the same way :-(
I tried both using single backslashes (eg c:\windows\system32\plink.exe,
same for ppk file) and double backslashes (eg
c:\\windows\\system32\\plink.exe, same for ppk file). Just in case, I
tried with forward slashes as well...same failure.
In the meanwhile, I learned about plink -load option, so I tried creating
and saving a putty session for user@externalpc using public key
authentication (which works fine), and then using "plink -load
externalsession -nc %host:%port" as the internal proxy command, but
unfortunately again no joy.
It's instantaneous: I click "connect", and immediately putty's black
window appears, with the error message's white box on top of it ("server
unexpectedly closed network connection"). Just out of curiosity, I tried
running wireshark while I was clicking "connect", it looks like no traffic
at all is produced, I don't even see a SYN packet towards any host!
For what it's worth, this is a 64-bit windows 7 running in a KVM virtual
machine. Are there known issues with some of that?
Thanks!