SFtp refuse connection

May 16, 2017 73 views
Linux Commands Ubuntu

H all guys

I'm newbie to do , i tried to connect through sftp but connection refused ,

I have googled for 2 dys , get annoyed

I tried installing vsftpd , is it required or not !?

But also it doesn't work ??

Itried connect from phpstorm , other ftp client .. I got Connection refused

I added 2 more users than root ... the same problem?

My droplet contains ubuntu16.04 apache nginx php composer laravel .

7 Answers
hansen May 16, 2017
Accepted Answer

Hi @lifesound

Did you setup your Droplet with keys or did you get a root password?

You don't need to install anything or setup anything, since SFTP is supported by SSH, which is installed by default on your Droplet.
As long as you can connect thru SSH to your server, then you can SFTP. Unless you've changed the configuration of /etc/ssh/sshd_config.

And to create new users, have a look in this tutorial:

Learning how to manage users effectively is an essential skill for any Linux system administrator. In this guide, we will discuss how to add and delete users and assign sudo privileges on an Ubuntu 16.04 server.

SFTP uses port 22, not port 21.

yes Im using 22

do i have to install anything?? is vaftp required for sftp??

thx @hansen

i connected both ways , neither worked !

root user , other user with ssh and with password .

root '/'

this is the netstat for port 22

tcp 0 0* LISTEN 1308/sshd

whats wrong ..

root@fg:~# cat ~/.ssh/sshd_config
Host *
ServerAliveInterval 15

Error: Disconnected: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server

@hansen thx it worked with ssh key through filezilla

filezilla is awesome as you

thx for help

For anyone facing problems , go directly to Filezilla

Have another answer? Share your knowledge.