LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2004, 08:51 AM   #1
juxstapose
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
Remote Port Forwarding Question


Hello,

I am trying to transfer files from one Linux computer to another. Both machines are behind routers. The remote Linux machine is operated by a non-technical person who only knows how to login. The idea is to have him to type the ssh command to create an incoming tunnel.

ssh -R 9000:localhost:22 myuser@something.com

I am also trying to understand tunneling in more detail. I understand it at a higher level but what exactly is going on? What is meant by "forwarding a port"?

Also after I create the incoming tunnel. How do I login into his machine and transfer the files that we need?

Thanks
 
Old 08-01-2004, 12:32 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If the user runs the command on his machine it will initiate a connection to the macihne "something.com". After the login is successful the ssh server will open port 9000 on "something.com" and listen for incomming connections. Any data that is received will be passed back across the encrypted ssh session to port 22 on the user's machine.

Unless you have "GatewayPorts" set to "yes" inside the "something.com" sshd_config file then the port will ony be opened on the loopback address and so you will need to initiate the connection to port 9000 from "something.com" itself and not anothr machine on the network.
 
  


Reply



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
Port Forwarding Question caps_phisto Linux - Networking 1 07-10-2005 10:33 PM
Forwarding ONE port to remote machine supertrout Linux - Networking 2 12-14-2004 10:02 PM
Port forwarding question GUIPenguin Linux - Networking 1 10-12-2004 01:30 PM
port forwarding question larry Linux - Networking 2 06-10-2004 10:34 AM
Port forwarding and remote X11 sessions lfabiani Linux - Networking 6 04-01-2002 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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