LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-09-2009, 06:25 PM   #1
dylans
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
SSH Port Forwarding


I'm trying to forward a remote port (8085) to a local port (3333).
Keys are setup, and I can ssh into the remote machine without needing to manually authenticate.

In remote machines ssh_config, "GatewayPorts yes"

The only thing I can think of is the remote machine possibly not having the correct iptable entries, currently:
-A INPUT -p tcp --dport 8085 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8085 -j ACCEPT

... or, in the process of creating this key, this is the first time I actually provided a password for the key... instead of hitting enter twice like most people seem to do

Here is the output of my ssh command:
ssh -v -nNT4 -R *:8085:localhost:3333 me@myhost
ssh -v -p 22 -nNT4 -R *:8085:localhost:3000 me@mydomain.com

debug1: Found key in /Users/me/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/me/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Offering public key: /Users/me/.ssh/master
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
debug1: Remote connections from *:8085 forwarded to local address localhost:3333
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: remote forward failure for: listen 8085, connect localhost:3333
Warning: remote port forwarding failed for listen port 8085
debug1: All remote forwarding requests processed
 
Old 01-09-2009, 10:28 PM   #2
dylans
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Sigh... port 8085 wasn't defined in /etc/services. Solved.
Could have "sworn" I had already added it. Sleep needed
 
  


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 Port Forwarding... oshua86 Linux - Networking 13 07-25-2008 11:04 AM
ssh and port forwarding mezeq Linux - Networking 2 11-06-2006 01:29 PM
SSH Port Forwarding wwnexc Linux - Networking 4 09-29-2005 01:26 AM
SSH Port forwarding WRSpithead Linux - Networking 1 04-18-2005 04:09 AM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 07:50 PM

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

All times are GMT -5. The time now is 02:18 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