VestaCP SFTP Authentication Error

July 28, 2017 3.1k views
CentOS Networking Development

I’m trying to login and upload a file as another user of a domain created in VestaCP where I have SSH key in placed.

Error: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
Error: Could not connect to server

I got that error from Cyberduck whenever I try to login with a password. I can only login via SSH and SFTP if I use the private key, any other users and password doesn’t work. Almost the same if I use Filezilla. This is a custom install from VestaCP.com without Mail and Firewall support. I’m using DOs Cloud Firewall service and allowed all incoming that VestaCP requires.

Is there a configuration with SSH config file that I should change to allow login from other users aside from admin and accept passwords as well?

Update: The account package in VestaCP have SSH Access set to bash. Hope this helps.

1 comment
  • FTP works on this but SFTP still throws the same error even if I already set the account package SSH Access to Bash. This previously works on my other Droplet with the same installation but without SSH key authentication.

1 Answer

@aronjayvo

Edit your openssh server configuration file located at /etc/ssh/sshd_config and add this option

PasswordAuthentication yes

then restart ssh service with service ssh restart

Hope this helps.

  • Hi @Mohsen47

    Already made the changes after reading at serverfault.com

    Still, thank you for your help!

  • I know this is an old thread but isn’t changing PasswordAuthentication yes a security threat? Vesta already has its security foibles without adding this as an issue.

    Is there any other workaround where only public/private key are a thing and narrow the users in AllowUsers to disallow others?

    I realise the user is still in a chroot jail but still....best safe than sorry right?

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!