Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-30-2004, 04:17 AM   #1
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
ssh tunnel


I would like to redirect ssh trafic from server1 to server2.

Imagine that I am currently at server1.
I now execute the following command:
ssh -L

now from client1 I try:
ssh -p 29000 name@server1

and get a:
ssh: connect to host server1 port 29000: Connection refused

can anyone see me error ?

Old 04-30-2004, 04:48 AM   #2
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
I tried to change the command run from the public server1 to:

ssh -L 29000:server2:22 -N name@server1

but it still fail with:
ssh: connect to host server1 port 1092: Connection refused
Old 04-30-2004, 03:30 PM   #3
LQ Newbie
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Perhaps check /etc/hosts.deny /etc/hosts.allow? You may need to create an allow entry in the TCP wrapper.

Perhaps tail -f /var/log/messages or /var/log/secure and see if the connection is refused by the wrapper?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Tunnel - need some help on this MeridianRebel Linux - Networking 2 08-11-2005 02:10 PM
I need to tunnel X via ssh... is there a command? Thaidog Linux - Newbie 1 09-29-2004 01:58 PM
ssh tunnel crep Linux - Networking 2 08-25-2004 08:24 PM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 07:52 PM
SSH tunnel? tarballedtux Linux - Networking 3 04-09-2002 03:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration