Page 1 of 1

Client Can't log into SFTP server

Posted: 2020-09-23 14:35
by S.Paananen
Hello Everyone,
Sorry if this has already been answered, but I am trying to setup a SFTP using Filezilla server.
I have created Private and public Keys using puttyGen. I have created a user, and assigned him a home folder.

While testing, i am unable to get in. Using the Filezilla Client, i have told it to login over SFTP and use a key file.
Looking at the logs on the server i see this....

(000006)9/22/2020 10:51:33 AM - (not logged in) (xxx.xx.xx.xxx)> Connected on port 52**2, sending welcome message...
(000006)9/22/2020 10:51:33 AM - (not logged in) (xxx.xx.xx.xxx)> 220 Welcome to the SFTP
(000006)9/22/2020 10:52:34 AM - (not logged in) (xxx.xx.xx.xxx)> 421 Login time exceeded. Closing control connection.
(000006)9/22/2020 10:52:34 AM - (not logged in) (xxx.xx.xx.xxx)> disconnected.

On the server side i see:
Connecting to XXX.XXX.XXX.XXX:52**2....
fzSftp started protocol_version=9
command: keyFile"<file location>"
command: open "<username>@XXX.XXX.XXX.XXX" 52**2

it sits there for a bit, then after about a minute :

Fatal Error: Server unexpectibly closed the network connection.


So why can't I connect? looking at the server logs, i can see the client make it's first connection, but that's it. As you can see, i don't get the welcome message on the client.

Did i setup the SFTP server right?

Please help

Re: Client Can't log into SFTP server

Posted: 2020-09-23 18:45
by boco
Your problem is a general misunderstanding.

1. FileZilla Server does NOT support SFTP (SFTP is the one based on the SSH2 protocol).
2. FileZilla Server does support FTPS (FTP over TLS).

So, if you want an SFTP server, you cannot use FileZilla Server, but need a different one such as OpenSSH.
For an FTPS server, FileZilla Server is applicable, but you need to select FTPS (Explicit recommended) in the client.