Re: PuTTY and ProxyCommand



Iulius <iulius@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
in the main window: user2@pc2 // port 22 // SSH
in the proxy config panel: local // user1@pc1 // 22
local proxy command: tcpconnect pc2 22

What's wrong with that?

You should have:

in the main window: user2@pc2 // port 22 // SSH
in the proxy config panel: local
local proxy command: plink user1@pc1 tcpconnect pc2 22
or: plink user1@pc1 -nc pc2:22
or better still: plink user1@pc1 -nc %host:%port

The thing that goes in the `local proxy command' box is exactly the
text you would have put after `ProxyCommand' in OpenSSH: that is,
not the command you want to run _on_ pc1, but the command you want
to run to connect _to_ pc1.
--
Simon Tatham "I'm going to pull his head off. Ear by ear."
<anakin@xxxxxxxxx> - a games teacher
.



Relevant Pages

  • Re: PuTTY and ProxyCommand
    ... It works well (a ssh session is created on pc2 through pc1). ... That Plink command is functionally equivalent to the command `ssh ... used _as_ a local proxy command, so that you don't need to worry ...
    (comp.security.ssh)
  • Re: PuTTY and ProxyCommand
    ... plink user1@pc1 tcpconnect pc2 22 ... The thing that goes in the `local proxy command' box is exactly the ... Incoming raw data ...
    (comp.security.ssh)