Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-22-2002, 07:04 PM   #1
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Rep: Reputation: 15
ssh and ftp

Has anyone set up ssh over ftp using a linksys router?
All the docs I found talk about using a remote and server machine for ssh . But I use my linksys router as my firewall and can't seem to find any info on routing ssh (port 22) to my ftp box or setting up high ports.

Old 08-22-2002, 10:55 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
How about starting the sshd to listen on the ftp port? You would have to stop the ftp service though.
Old 08-23-2002, 01:40 PM   #3
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
ssh supports tunneling, you should be able to connect via ssh on port 22 and then connect with a tunnel to port 21 (ftp). The ssh client that comes with sshd supports this as well as a lot of windows ssh clients.
Old 08-23-2002, 11:16 PM   #4
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
First, as a reply to Ionized, I don't think you can tunnel ftp because ftp uses that back-channel on port 20 for the data? If you succeeded, I'd be interested in how you did it.

I'm not quite sure what you want to accomplish, "ssh over ftp" doesn't mean much to me. I presume you want to be able to ssh in *from the outside* to your box? In the Linky setup, go to "Advanced", "Forwarding", and set port 22 to go to the IP of your "ftp box". Along the same lines, if you want to allow incoming ftp connections to connect to your box, enable port 21 to go to that IP.

That implies that your "ftp box" does not get a DHCP address from the Linksys but has a fixed IP on your LAN.

ftp (if it's not anonymous) is such an unsecure thing with the cleartext passwords. If you just (as I do once in a while) need to get at files on your home box while at work or elsewhere, consider using scp across the fully encrypted (including passwords) connection, and not enabling ftp at all.

Old 08-25-2002, 05:55 PM   #5
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
I believe what he is talking about is tunneling as metioned above. Most decent SSH clients can set this up pretty easily.


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
Help w/ FTP and SSH rules Charles Daniel Linux - Security 1 10-18-2005 10:58 PM
ftp within SSH DJOtaku Linux - Software 1 03-13-2005 09:34 PM
SSH and FTP quozt Linux - Networking 4 08-22-2003 08:10 AM
FTP and SSH Ikik Linux - Networking 10 08-20-2003 11:55 AM
FTP over SSH?? markma Linux - Security 1 12-29-2000 02:26 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration