Networking Forums

Networking Forums > Computer Networking > Linux Networking > FTP over SSH, private IP

Reply
Thread Tools Display Modes

FTP over SSH, private IP

 
 
Jade Fox
Guest
Posts: n/a

 
      09-06-2003, 03:12 PM
Hi,

I am trying to ftp to a Suse Linux machine behind a firewall.
The machine's IP is not visible from outside, so I create a SSH tunnel like
this

my localhost (port 5000) ------- a solaris machine ------ linux

I was able to establish the control connection, but the linux machine
sent back its private IP address (192.16.27.34:26700), which my localhost
cannot use to establish the data connection. How do I fix this problem?
Thanks very much.


connecting to 127.0.0.1:5000
Connected to 127.0.0.1 port 5000
220 "Welcome to FTP service."
USER jsmith
331 Please specify the password.
PASS (hidden)
230 Login successful. Have fun.
PWD
257 "/home/jsmith"
Host type (I): UNIX (standard)
PASV
227 Entering Passive Mode (192,16,27,34,104,76)
connecting to 192.16.27.34:26700
- -
connecting to 192.16.27.34:26700
! Connection failed to 192.16.27.34 - connection timed out
! connect: error 0
PORT 127,0,0,1,8,89
500 Illegal PORT command.
! Failed "port":
! Retrieve of folder listing failed (0)
 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      09-06-2003, 04:15 PM
Jade Fox <(E-Mail Removed)> wrote:
> Hi,


> I am trying to ftp to a Suse Linux machine behind a firewall.
> The machine's IP is not visible from outside, so I create a SSH tunnel like
> this


> my localhost (port 5000) ------- a solaris machine ------ linux


> I was able to establish the control connection, but the linux machine
> sent back its private IP address (192.16.27.34:26700), which my localhost
> cannot use to establish the data connection. How do I fix this problem?
> Thanks very much.


Why not use scp?

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
 
Jem Berkes
Guest
Posts: n/a

 
      09-06-2003, 04:43 PM
> I am trying to ftp to a Suse Linux machine behind a firewall.
> The machine's IP is not visible from outside, so I create a SSH tunnel
> like this


FTP is too complicated (dual channel). sftp is designed to be secure, and
it's already a subsytem of openssh. Your server's sshd_config should have a
line like:
Subsystem sftp /usr/libexec/sftp-server

Once this is running just port forward your firewall:5000 to private:22
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Masquerading private LAN to private ip entpneur@gmail.com Linux Networking 1 12-31-2007 02:39 AM
Visible private IP VspaceG Linux Networking 1 08-09-2007 10:09 AM
Private DNS across a VPN.. Eric Linux Networking 4 04-05-2006 05:34 AM
Private DSL Steve H Broadband 8 10-13-2005 08:39 PM
Private WAN IP? Tim Broadband Hardware 1 08-26-2004 09:18 PM



1 2 3 4 5 6 7 8 9 10 11