Re: SSH Tunneling without console login

From: Thorsten Peter (peter_at_rz-zw.fh-kl.de)
Date: 11/25/05

  • Next message: Jesse: "RE: SSH Tunneling without console login"
    Date: Fri, 25 Nov 2005 18:21:40 +0100
    To: Jesse <lowbass@gmail.com>
    
    

    hey,

    well you won't be able to open ssh tunnels, no matter what without
    logging in to the server. that's the way it works.
    i am not sure what your point is. maybe you wanna try what i do for
    tunneling purposes, i login to the remote server with the following command:

    ssh -fN user@remotehost -L localport:targetip:targetport (in your case
    -R for remote forwarding)

    -f forces ssh to go into background.
    -N makes it stop executing other commands (for tunneling purposes only)

    so what it does, it logs in to your remote server, as a background
    process. you can then just leave it running, log out of your local
    shell, or do whatever your want. but still you DO login to the remote
    console. just that you don't have the ssh login running as a foreground
    process.

    regards

    Thorsten

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


  • Next message: Jesse: "RE: SSH Tunneling without console login"

    Relevant Pages

    • server securing issues
      ... have done some securing on my solaris server and ... Information about the remote host: ... Port ssh ... An SSH server is running on this port. ...
      (SunManagers)
    • Re: restrict ssh access
      ... > We have one ssh server which receives about 6000 failed attempts to ... > unsuccessful login attempts per client IP address? ... the remote server is also running OpenSSH. ...
      (comp.security.ssh)
    • RE: Re: Remote connections
      ... Compliments of Cygwin you can setup a SSH server on ... connection through the SSH connection. ... Aside from creating a VPN tunnel and then performing a Remote Desktop ... Server Terminal Services and XP and 2003 server Remote Desktop machines. ...
      (Focus-Microsoft)
    • Re: Remote X11 Connection
      ... ssh -Y ... ... I noticed though on connecting and using emacs to open the required file ... the GUI of the server was loaded not my local GUI ... what you did was log on to the remote server and run emacs there, ...
      (Fedora)
    • Re: [SLE] Remote Administration
      ... I just logged into my Linux server from WinXP using Cygwin (I was using it ... for XWin - unsecure) via XDMCP to get a remote desktop. ... > Can anyone give me a short description of what SSH is? ...
      (SuSE)