

SSH connection can be established but sftp connection is denied via terminal or any client.The second section of this answer is how to setup SSH key based authentication.


For example, if you are using Nautilus as FTP client: In most cases you just need to add : at the end of the target ip-address/FQDN. Then you should instruct the FTP client to connect via the port 2121 instead of the default one. For example you can do that for vsftpd by adding the following directive to /etc/nf - reference: listen_port=2121 service and sudo systemctl start rvice, then check the status again: sudo systemctl status rvice.Īnother way to solve this issue is to change the port on which one of these services listen. You can investigate which is that another service by any of the commands: sudo lsof -i -n -P | grep ':21' I've made an experiment and I've received the same status as yours. If you didn't touched /etc/nf, the reason for this failure status should be that another service is already listen on the default FTP port - 21. Process: 10157 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)Īug 31 22:26:53 scw-24e1a0 systemd: Starting vsftpd FTP server.Īug 31 22:26:53 scw-24e1a0 systemd: Started vsftpd FTP server.Īug 31 22:26:53 scw-24e1a0 systemd: rvice: Main process exited, code=exited, status=2/INVALIDARGUMENTĪug 31 22:26:53 scw-24e1a0 systemd: rvice: Unit entered failed state.Īug 31 22:26:53 scw-24e1a0 systemd: rvice: Failed with result 'exit-code'. Process: 10161 ExecStart=/usr/sbin/vsftpd /etc/nf (code=exited, status=2) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: failed (Result: exit-code) since Fri 22:26:53 CEST 10min ago I've did the following: sudo apt-get update I'm trying to install an FTP server (vsftpd) on my Ubuntu 16.04 server from Scaleway.
