Ssh – How to allow both/either public key and/or password authentication

sshssh-keys

I am trying to get Komodo to connect to a remote server. However, as I understand it, Komodo doesn't support public ssh keys. I edited the /etc/ssh/sshd_config file and set both

PasswordAuthentication yes
PubkeyAuthentication yes

However, when I try to connect I keep getting the following message:

Error: 'Remote SSH server does not allow password authentication. Allowed types are: u'publickey''

How can I set the server up so that it accepts both types of authentication? Note: I am using Ubuntu.

Best Answer

Your configuration looks ok. Once you have changed the sshd_config file, you need to restart sshd so that it can read the new config.