Hi everyone!
I own a remote server on which I can SSH/connect to with a private key (.ppk / .pem) and it works fine. However, when I try to connect to it with SFTP on FileZilla using the same credentials and private key file, it says "Connected to XX.XXX.XX.XXX" but in the directory panel, it says "Not connected to any server" (see the screen)
When checking the logs on the server side, it does say "pam_unix(sshd:session): session opened for user XX" so the connection is definitely established.
Do you guys have any idea?
Thank you
[SFTP] Connected to server but "not connected to any server"
Moderator: Project members
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-10-01 11:27
- First name: Ben
- Last name: Widaw
[SFTP] Connected to server but "not connected to any server"
- Attachments
-
- FileZilla result
- Filezilla.png (12.03 KiB) Viewed 1341 times
Re: [SFTP] Connected to server but "not connected to any server"
Which version of FileZilla are you using?
What SSH and SFTP server software (product and version) are running on the server machine?
What SSH and SFTP server software (product and version) are running on the server machine?
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-10-01 11:27
- First name: Ben
- Last name: Widaw
Re: [SFTP] Connected to server but "not connected to any server"
I am using FileZilla 3.50.0.
The server machine is running on Debian 9 and there is a .ssh/ folder that contains the authorized keys for the public/private key combination. I can SSH to the server properly, and I thought it would work fine with FTP connection using the same credentials. Isn't it how it is working?
Thank you
The server machine is running on Debian 9 and there is a .ssh/ folder that contains the authorized keys for the public/private key combination. I can SSH to the server properly, and I thought it would work fine with FTP connection using the same credentials. Isn't it how it is working?
Thank you
Re: [SFTP] Connected to server but "not connected to any server"
SFTP is a subsystem of SSH2. It must be enabled on the server, in order to accept SFTP (not FTP) connections.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-10-01 11:27
- First name: Ben
- Last name: Widaw
Re: [SFTP] Connected to server but "not connected to any server"
I think I understand. Do you have any guidelines or places I should search for in order to enable FTP on the server-side?
Since there is an SFTP option on FileZilla, I thought it would be enough to put in the credentials that work for SSH and have access to directory's data.
Thank you for your answers!
Since there is an SFTP option on FileZilla, I thought it would be enough to put in the credentials that work for SSH and have access to directory's data.
Thank you for your answers!
Re: [SFTP] Connected to server but "not connected to any server"
Please provide a complete and unmodified log of a connection attempt with the debug log level set to 3 in the settings dialog of FileZilla.
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-10-01 11:27
- First name: Ben
- Last name: Widaw
Re: [SFTP] Connected to server but "not connected to any server"
I finally managed to get it working! It was the configuration in sshd_config that wasn't correct.
For future people with the same problem, here is the interesting part in my /etc/ssh/sshd_config (and make sure there is no other line with "Subsystem sftp ...")
Then add your users to the ftp group and it works.
Thank you all for the answers!
For future people with the same problem, here is the interesting part in my /etc/ssh/sshd_config (and make sure there is no other line with "Subsystem sftp ...")
Code: Select all
Subsystem sftp internal-sftp
Match group ftp
ChrootDirectory /
AllowTCPForwarding yes
Thank you all for the answers!