WinSCP connect to Ubuntu. Access Denied

Well the port 22 is for SSH service. So you can probably try installing openssh-server in your ubuntu by typing

sudo apt-get install openssh-server

and then try connecting with the following details:

protocol: SSH

hostname: [IP Address of the computer]

port: 22

username: [username]

password: [password]

Hopefully this should work.


First look at auth.log on the system.

cat /var/log/auth.log

In my case with WinSCP, I found something like this:

fatal: no matching mac found: client hmac-sha1,hmac-sha1-96,hmac-md5 server hmac-sha2-512,hmac-sha2-256,hmac-ripemd160 [preauth]

And comment the line in /etc/ssh/sshd_config:

MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160

don't forget to restart ssh :-) Hope this can help some one.

Tags:

Ubuntu

Winscp