SOLVED FTP Issues

Status
Not open for further replies.

NoHesHere

Cadet
Joined
Jun 20, 2013
Messages
8
So, after having searched all over the place, I thought I might post here for some help. I have configured SSH access using keys, and it works without issue. I have enabled FTP, and connecting via SFTP does not work. I thought the issue might have been OpenSSH version related, as I was on 9.3, but even after upgrading to 9.10, I see the same issue. Here is the output, let me know if you can help, or if you need anything else from me.

Code:
sftp -P 47524 -v james@192.168.2.140
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.2.140 [192.168.2.140] port 47524.
debug1: Connection established.
debug1: identity file /home/james/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/james/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
debug1: ssh_exchange_identification: 220 ProFTPD 1.3.5a Server (freenas.local FTP Server) [::ffff:192.168.2.140]


debug1: ssh_exchange_identification: 500 SSH-2.0-OPENSSH 7.2P2 not understood
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
I have enabled FTP, and connecting via SFTP does not work.
Did you enable SSH? SFTP connects over SSH so make sure your connection credentials on the client are configured accordingly.
 

NoHesHere

Cadet
Joined
Jun 20, 2013
Messages
8
Yea, it was exactly what Jailer said. Turns out, that even though you configure an FTP port in the service, if you connect over SSH, it has to use the SSH port. Makes sense really, but I wasn't expecting it for some reason.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Perhaps you don't realize that SFTP is a complete (and superior) replacement for FTP. In other words, if you have SSH set up, you already have SFTP, and you no longer need to think about FTP.
 

NoHesHere

Cadet
Joined
Jun 20, 2013
Messages
8
I was aware that SFTP was a better option than FTP, but not that it was a replacement wrapped into SSH. I was under the impression that I needed to run the FTP service along with the SSH service, in order to get the functionality I was looking for. :)
 
Status
Not open for further replies.
Top