Re: SSH Tunneling without console login

From: Jesse ("do)
Date: 11/24/05

  • Next message: simon_l_evans_at_yahoo.co.uk: "Re: OpenSSH environment passing"
    Date: Thu, 24 Nov 2005 22:16:02 +0100
    
    

    Richard E. Silverman wrote:
    >>>>>>"Jesse" == Jesse <"do not spam"> writes:
    >
    >
    > Jesse> Question: Is it possible to use remote port forwarding
    > Jesse> (tunneling) without having to login on the console?
    >
    > Jesse> Situation: I have a server (PC1) which is running a SSH service
    > Jesse> behind a firewall. I do NOT have any control over the firewall,
    > Jesse> but I do want to access the SSH service of PC1 from PC2 over
    > Jesse> the Internet.
    >
    > Jesse> Solution for the situation: I'm using the following command on
    > Jesse> PC1 to let PC1 make a SSH-tunnel to PC2 ssh -R
    > Jesse> 4000:localhost:22 account@PC2 And I have installed a SSH
    > Jesse> service on PC2 to make tunneling possible.
    >
    > Jesse> Same question in detail: When I use the command above, it will
    > Jesse> make the tunnel, but I will also make PC1 login on the console
    > Jesse> of PC2. That last step is something I do not want. PC1 should
    > Jesse> only make the tunnel to PC2, but should NOT login on the
    > Jesse> console of PC2. Is this possible?
    >
    > $ man ssh
    > ...
    > -N Do not execute a remote command. This is useful for just for-
    > warding ports (protocol version 2 only).
    > ...
    >

    I'm looking for an option on the SSH-Tunnel-server (PC2) side, not on
    the SSH-Tunnel-client side (PC1). This because PC1 is not fully under my
    control, but PC2 is.

    Is there also an option like -N for SSHD somehow? I could not find such.


  • Next message: simon_l_evans_at_yahoo.co.uk: "Re: OpenSSH environment passing"

    Relevant Pages

    • Re: SSH Tunneling without console login
      ... Jesse> behind a firewall. ... Jesse> service on PC2 to make tunneling possible. ... but I will also make PC1 login on the console ...
      (comp.security.ssh)
    • SSH Tunneling without console login
      ... Is it possible to use remote port forwarding (tunneling) without having ... I have a server (PC1) which is running a SSH service behind a firewall. ... SSH service of PC1 from PC2 over the Internet. ... make PC1 login on the console of PC2. ...
      (comp.security.ssh)