Networking Forums

Networking Forums > Computer Networking > Linux Networking > SSH tunnel without shell on the remote-host?

Reply
Thread Tools Display Modes

SSH tunnel without shell on the remote-host?

 
 
Ewald Jenisch
Guest
Posts: n/a

 
      08-07-2003, 07:31 AM
Hi,

In order to fetch my emails via POP/IMAP I use an ssh-tunnel to a remote
machine like this:

ssh -L 60000:localhost:143 some.remote.host

This works without problems - however I've got an interactive session on
the remote host that I don't need anyway.

I've tried with

ssh -L 60000:localhost:143 some.remote.host '(/bin/true &)'

but this doesn't seem to work

Is there any way to establish a ssh-tunnel to a remote-host without
having an interactive session?

TIA for your help,
-ewald

 
Reply With Quote
 
 
 
 
Raymond Wu
Guest
Posts: n/a

 
      08-07-2003, 12:38 PM
Ewald Jenisch <(E-Mail Removed)> wrote:
> Hi,
>
> In order to fetch my emails via POP/IMAP I use an ssh-tunnel to a remote
> machine like this:
>
> ssh -L 60000:localhost:143 some.remote.host
>
> This works without problems - however I've got an interactive session on
> the remote host that I don't need anyway.
>
> I've tried with
>
> ssh -L 60000:localhost:143 some.remote.host '(/bin/true &)'
>
> but this doesn't seem to work
>
> Is there any way to establish a ssh-tunnel to a remote-host without
> having an interactive session?
>
> TIA for your help,
> -ewald
>


According to the man page (you did read it, right?) you can use the -N option. You might want to look at the -f option as well.

--
Raymond Wu

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: unable to connect to remote host, from remote host Michael C. Network Routers 0 10-21-2006 10:08 AM
VPN tunnel ws. Remote Desktop (Terminal client) ck@vario-software.de Linux Networking 5 08-26-2005 01:01 PM
Remote Shell in Win98 Jorge Windows Networking 0 01-26-2004 11:54 PM
VPN / tunnel / remote bridging Alex Joni Linux Networking 2 01-24-2004 11:53 AM
Allowing sftp without remote shell Jem Berkes Linux Networking 3 12-01-2003 03:17 PM



1 2 3 4 5 6 7 8 9 10 11