LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 30
ssh tunnel


Hi,

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 29000:server2.here.com:22 name@server2.here.com

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 ?

Thanks
 
Old 04-30-2004, 05:48 AM   #2
TroelsSmit
Member
 
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, 04:30 PM   #3
evilgh0st
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?
 
  


Reply


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 03:10 PM
I need to tunnel X via ssh... is there a command? Thaidog Linux - Newbie 1 09-29-2004 02:58 PM
ssh tunnel crep Linux - Networking 2 08-25-2004 09:24 PM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 08:52 PM
SSH tunnel? tarballedtux Linux - Networking 3 04-09-2002 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 PM.

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