FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 27th, 2001, 01:40 PM
Eric Anderson Eric Anderson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 11 Eric Anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Greetings,

Can anyone point me to a clear net resource, or simply give me instructions, on creating SSH2 tunnels for insecure TCP protocols specifically FTP? I don't care as much about encrypting the data connection, but I do want to encrypt the control connection.

I altered my config file, adding the following line:

LocalForward "ftp/21:my.machine.name:21"

and restarted my daemon. I was hoping this would automatically encrypt any FTP logins. However, if it is encrypted it's almost too transparent. I can't tell whether it's working or whether the FTP client is going directly to the FTP daemon and bypassing the tunnel.

My sense is that I'm going about this the wrong way.

I would simply use sftp but I have users that are on Macs and they need to upload files to our Linux server, and so far I have not found an sftp client for for Mac. If there is one, and I've missed it, please let me know. Otherwise, I would like to establish a connection that at least protects my user's passwords from sniffing.

Thanks,
Eric Anderson

Reply With Quote
  #2  
Old March 30th, 2001, 06:43 AM
Hicks Hicks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 18 Hicks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 44 sec
Reputation Power: 0
Cool

AFAIK tunneling ftp is difficult to do due to ftp utilising passive connections where the server makes a second tcp socket connection back to the client for sending the information.

Thus you can't just encrypt the incoming ftp connection to socket 21, since the server makes a second connection back to client which causes problems due to the fact that ports below 1024 are reserved for root setup only and i think ssh needs a port below 1024 to opperate thus the host -> client channel cannot be made within the correct port range.

However I read about this ages ago and things may have changed since then.

I remember reading in one of the ssh guides that you were advised not to tunnel ftp due to this problem, however i cannot remember whether it was possible but very difficult?

Reply With Quote
  #3  
Old March 30th, 2001, 08:53 AM
Hicks Hicks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 18 Hicks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 44 sec
Reputation Power: 0
Thumbs up

Replying to my own posts now :-)

I've just looked into setting up pop3 over secure channels and this can be done using SSL.

I presume you can do the same for ftp via SSL?

Have a look at stunnel which I used for the pop3 encryption (prevents passwords been sent clear text)

the url is www.stunnel.org

hope that helps

Reply With Quote
  #4  
Old April 4th, 2001, 12:52 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,157 pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level)pieux User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 h 23 m 35 sec
Reputation Power: 36
That's great information, muphicks. I was actually trying to figure this out myself, but never thought to post here (thanks Eric!). BTW, did you know you can "edit" your own post?
__________________
Michael

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Tunnelling FTP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap