LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 04-30-2004, 04: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, 04: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, 03: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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 06:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration