FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have fedora core 1 loaded and ssh is running. When I try to connect with sftp #22 with cute pro 1, it gets as far as:
STATUS:> Getting listing ""...
STATUS:> Initializing SFTP2 module...
STATUS:> Connecting to sftp server 192.168.9.4:22 (ip = 192.168.9.4)...
ERROR:> A timeout occurred.
ERROR:> Can't connect to 192.168.9.4:22. Socket error = #-1.
I can connect thru ftp thru #21, no problems. Thoughts? Tom
Probably because the ftp server is only running on port 21. So when you try to connect to 22, it times out. If you really want to connect to 22, you will need to change the configuration of the server.
That depends what the server is. The only one I know well is proftp. In proftp, all the configuration options are in /etc/proftpd/proftpd.conf. I don't know what the default ftp server daemon is in Fedora, but there might be a graphical configuration utility. But apart from that, is there any reason you need port 22? 21 is the default and I wouldn't know of any reason to change it.
Don't be too quick to make those changes. SFTP is really more along the lines of scp and slogin which use ssh. That's why it needs port 22 not 21.
Could be getting blocked at the firewall.
Try the command: slogin 192.168.9.4:22 or what ever the remote machine is.
Originally posted by spuzzzzzzz Oh of course - I forgot you were using sftp instead of ftp. 22 is the way to go. Sorry.
No problem. I try to stay away from defaults and I prefer to use "S" for a little more security. I am by no means a security nut, but i like to look over my shoulder.
Don't be too quick to make those changes. SFTP is really more along the lines of scp and slogin which use ssh. That's why it needs port 22 not 21.
Could be getting blocked at the firewall.
Try the command: slogin 192.168.9.4:22 or what ever the remote machine is.
I get the response "this port has been closed for security reasons". When I do "nmap localhost, it is open, and I can get in thru ssh fine. There must be a config file some where that blocks sftp on this port. I disabled the firewall also.
Now if I try@ a terminal sftp 192.168.9.4:22, its ask for my password, then says "Couldn't stat remote file: No such file or directory File "/root/22" not found. If I try to log on as a user, I get the same response except it cannot find the file /home/user/22. Wierd??? HHMMM!
Well for kicks, I tried to get in using cute ftp pro 3.3, and I get right in. Everything works as advertised. My version, cute ftp pro 1, must be missing something that Fedora needs. This is the first version of Linux it would not connect to. I also use slackware and have had no problems there either. Oh well time to update. This 3.3 runs much faster than ! did. Hey, thanks to both of you for the replies and help. Who woulda guessed?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.