uukmari
By:
uukmari

sftp is not working, and ftp is not working!!!

August 10, 2017 173 views
Logging Ubuntu

When connecting with sftp:
server ip: *******
username: root
password: rootpassword
port: 22
sftp
It says
The server rejected SFTP connection, but it listens for FTP connections.

Did you want to use FTP protocol instead of SFTP? Prefer using encryption.

When i try to connect with ftp, it wont, how the hell i can connect with ftp?
This is plain stupid

7 Answers

The WinSCP website contains a great explanation of what causes this error here:

https://winscp.net/eng/docs/message_server_rejected_sftp_listens_for_ftp

The majority of the reasons for the error are that your server must have a running, non-firewalled SSH server and you must use the correct login details i.e. port, username, and password.

i got my sftp server working, but still cant login.

username root and just reset my root password but still nothing.

Have you installed a dedicated sftp server or are you using an ssh server?

Have you checked the log file on the server? It will usually indicate what is the reason that the connection was refused. For SSH this will be in either:

/var/log/auth.log
/var/log/secure

If you are using a dedicated sftp server would you be able to tell me which one you installed?

I think im useing SSH, havent installed anything.
I only have access to the droplet via web and to console.

Nothing else, but i need access to ftp.

Are you able to SSH into the server?

Did you make any changes to SSH such as disabling password authentication or changing the port?

Hey, yes, im able to SSH into console, and everything.
How can i see witch ports are open?
sudo netstat -plutn | grep 22?

Got it, somebody have changed the port to 2500
Now is another problem at least i can see logs and so.
Mysql isnt respondig, or starting up.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Read some where that it could be the case of full disc on the droplet and after restart the mysql server did not startup for some reason.

Where can i find the cache catalog or tmp that i can delete for freeing up some space?

Have another answer? Share your knowledge.