Networking Forums

Networking Forums > Computer Networking > Linux Networking > FTP Using SSH Tunnel

Reply
Thread Tools Display Modes

FTP Using SSH Tunnel

 
 
Buck Turgidson
Guest
Posts: n/a

 
      09-14-2004, 07:26 PM
I have a linux server with vsftpd enabled via xinetd. I would like to
access using FTP through an SSH tunnel using PuTTY. I have forwarded
both ports 20 and 21.

However, I still get the following. Can anyone suggest some things to
try? I cannot change my ftp client because I eventually need to use ftp
within a development tool, which has the same problem.

C:\ftp localhost
Connected to 3A3A84.
220 (vsFTPd 1.2.1)
User (3A3A84none)): buck
331 Please specify the password.
Password:
230 Login successful.
ftp> dir
500 Illegal PORT command.
425 Use PORT or PASV first.
ftp> get .bashrc
425 Use PORT or PASV first.
ftp>
 
Reply With Quote
 
 
 
 
Andrew Schulman
Guest
Posts: n/a

 
      09-14-2004, 08:44 PM
> I have a linux server with vsftpd enabled via xinetd. I would like to
> access using FTP through an SSH tunnel using PuTTY. I have forwarded
> both ports 20 and 21.


FTP isn't easily tunneled, because of the way the protocol works--
another port is allocated as part of the handshake. (At least, I think
that's right.) To get around it you need a specialized ftp+ssh tool,
such as SecureFX, which understands the exchange and automatically
tunnels the newly allocated port; or else, a different protocol, namely
SFTP, part of SSH2. In PuTTY, use PSFTP or PSCP.

> However, I still get the following. Can anyone suggest some things to
> try? I cannot change my ftp client because I eventually need to use ftp
> within a development tool, which has the same problem.


http://www.onsight.com/faq/ssh/ssh-faq-5.html#ss5.6

I think you need to use PSFTP or PSCP instead of ftp. PSFTP is a drop-
in replacement for ftp; you won't have to bother tunneling it through
PuTTY, because it already uses ssh. If your development tool is really
too dumb to be able to change its ftp client, you could always copy the
psftp executable on top of ftp; it should work transparently the same.

--
To reply by email, change "deadspam.com" to "alumni.utexas.net"
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      09-16-2004, 06:44 AM
Buck Turgidson wrote:
> I have a linux server with vsftpd enabled via xinetd. I would like to
> access using FTP through an SSH tunnel using PuTTY. I have forwarded
> both ports 20 and 21.
>
> However, I still get the following. Can anyone suggest some things to
> try? I cannot change my ftp client because I eventually need to use ftp
> within a development tool, which has the same problem.
>
> C:\ftp localhost
> Connected to 3A3A84.
> 220 (vsFTPd 1.2.1)
> User (3A3A84none)): buck
> 331 Please specify the password.
> Password:
> 230 Login successful.
> ftp> dir
> 500 Illegal PORT command.
> 425 Use PORT or PASV first.
> ftp> get .bashrc
> 425 Use PORT or PASV first.
> ftp>


Forget FTP, use scp instead.

For Windoze, get WinSCP to complement yout PuTTY.

HTH

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
John Thompson
Guest
Posts: n/a

 
      09-16-2004, 06:59 PM
On 2004-09-14, Buck Turgidson <(E-Mail Removed)> wrote:

> I have a linux server with vsftpd enabled via xinetd. I would like to
> access using FTP through an SSH tunnel using PuTTY.


Don't bother with ftp. PuTTY includes both an scp (pscp.exe) and an sftp
client (psftp.exe) you can use for file transfers via ssh. They work just
like the OpenSSH scp and sftp clients.

--

-John ((E-Mail Removed))
 
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
Need help with VPN tunnel Bill Network Routers 0 05-05-2010 07:54 AM
VPN Tunnel Robert Craig Windows Networking 12 11-18-2008 01:52 PM
Tunnel X over ssh Joe Hesse Linux Networking 1 10-30-2007 05:45 PM
ssh tunnel kristian Linux Networking 3 03-31-2006 08:04 AM
ssh tunnel /dev/null Linux Networking 3 10-25-2003 08:09 PM



1 2 3 4 5 6 7 8 9 10 11