Re: double sshing, using ProxyCommand

From: Paul Hink (email_at_p-hink.de)
Date: 04/08/04

  • Next message: Stefano: "Re: Putty: PSFTP connection without password prompt (CORRECT VERSION)"
    Date: 8 Apr 2004 08:26:25 GMT
    
    

    Darren Tucker <dtucker@dodgy.net.au> wrote:

    > In article <c51cme$2lrt63$1@ID-20530.news.uni-berlin.de>,
    > Paul Hink <email@p-hink.de> wrote:
    >>I would suggest using something like this:
    >>
    >>Host M2
    >> ProxyCommand ssh M1 netcat -q 0 %h %p
    >>
    >>Upon connecting to M2, ssh will connect to M1 using ssh and tell
    >>netcat on M1 to connect to M2's ssh port. Then, ssh on your local
    >>machine establishes a connection over this channel to M2's sshd.
    >
    > Just watch that sshd doesn't leave orphan netcat processes lying
    > around on M1.

    netcat(1) works great for me if used with the "-q 0" option. It then
    quits as soon as the tunnelled ssh connection is closed.

    Paul


  • Next message: Stefano: "Re: Putty: PSFTP connection without password prompt (CORRECT VERSION)"

    Relevant Pages

    • RE: sshd does not die when client issues control-C or closes
      ... I have been tesing OpenSSH sshd running under uClinux using Putty, ... I set my Client Keep alive parameters to issue 4 requests every ... # Or after 1 connection deny subsequent connections up to 2 ...
      (SSH)
    • RE: X11 Forwarding
      ... Upon receipt of a connection request, ... the daemon forks, creating a new process. ... I guess all those forums out there saying that sshd reads the config ... First do a "ps -f" to get the PPID ...
      (SSH)
    • sshd brake-in attempts
      ... I have been seeing some strange entries in my authlog ... sshd: illegal option -- v ... Connection from 211.218.166.200 port 2273 ... Did not receive ident string from 211.218.166.200. ...
      (Incidents)
    • Re: C/R without "leaks"
      ... sshd: to give up the connection when something goes wrong. ... server consolidation with a virtual machine, your do with containers. ...
      (Linux-Kernel)
    • Re: New SSH Daemon refusing to log any user on
      ... new version of sshd it installed into /usr/sbin/. ... > TS> Well, I believe OpenSSH can be linked with libwrap, so it uses ... > TS> post shows that you did make some kind of connection. ... > client-side symptom is a complaint that the initial SSH protocol version ...
      (comp.security.ssh)

    Loading