LinuxQuestions.org
Help answer threads with 0 replies.
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 08-22-2002, 06:04 PM   #1
artman62
Member
 
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.

Thanks
 
Old 08-22-2002, 09:55 PM   #2
crabboy
Moderator
 
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, 12:40 PM   #3
Ionized
Member
 
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, 10:16 PM   #4
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 328

Rep: Reputation: 31
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.

mlp
 
Old 08-25-2002, 04:55 PM   #5
TruckStuff
Member
 
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.
 
  


Reply


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 09:58 PM
ftp within SSH DJOtaku Linux - Software 1 03-13-2005 08:34 PM
SSH and FTP quozt Linux - Networking 4 08-22-2003 07:10 AM
FTP and SSH Ikik Linux - Networking 10 08-20-2003 10:55 AM
FTP over SSH?? markma Linux - Security 1 12-29-2000 01:26 PM


All times are GMT -5. The time now is 08:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration