I'm trying to connect to a sftp server via
sftp USERNAME@SERVERNAME. Whatever I do, I get "Permission denied (publickey)." Googling doesn't help as everybody recommends switching to key-based authentication, which is a funny idea for somebody not in control over the server. But maybe the server has been switched in the meantime (and nobody told me). Using
-v I get:
debug1: Host HOSTNAME is known and matches the RSA host key. debug1: Found key in .../.ssh/known_hosts:5 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: .../.ssh/id_rsa debug1: Server accepts key: pkalg ssh-rsa blen 279 debug1: Authentications that can continue: publickey debug1: Trying private key: .../.ssh/id_dsa debug1: No more authentication methods to try. Permission denied (publickey). Couldn't read packet: Connection reset by peer
Does it mean that the server accepts no passwords at all?