Everytime I ssh onto my remote server I need to provide the password. I copied my public key (id_dsa.pub) to the remote server using:ssh-copy-id -i id_dsa.pub user@serverI checked it was correctly added to authorized_keys. All the file/directory permissions are correct:~user 755~user/.ssh 700~user/.ssh/authorized_keys 640~user/.ssh/id_dsa.pub 644The PasswordAuthentication field in /etc/ssh/sshd_config is set to yes. I put the sshd in debug mode and added the verbose switch to the ssh command. I get the impression that the server did not try to use id_pub.dsa because of the line Skipping ssh-dss key: ........... not in PubkeyAcceptedKeyTypesThere is no encrypted disc on server side. Any ideas how to progress?Here is the ssh daemon debug info:sudo /usr/sbin/sshd -d====debug1: sshd version OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014debug1: key_parse_private2: missing begin markerdebug1: read PEM private key done: type RSAdebug1: private host key: #0 type 1 RSAdebug1: key_parse_private2: missing begin markerdebug1: read PEM private key done: type DSAdebug1: private host key: #1 type 2 DSAdebug1: key_parse_private2: missing begin markerdebug1: read PEM private key done: type ECDSAdebug1: private host key: #2 type 3 ECDSAdebug1: rexec_argv[0]='/usr/sbin/sshd'debug1: rexec_argv[1]='-d'Set /proc/self/oom_score_adj from 0 to -1000debug1: Bind to port 22 on 0.0.0.0.Server listening on 0.0.0.0 port 22.debug1: Bind to port 22 on ::.Server listening on :: port 22.debug1: Server will not fork when running in debugging mode.debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8debug1: inetd sockets after dupping: 3, 3Connection from xxx port 63521 on yyy port 22debug1: Client protocol version 2.0; client software version OpenSSH_7.1debug1: match: OpenSSH_7.1 pat OpenSSH* compat 0x04000000debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3debug1: permanently_set_uid: 115/65534 [preauth]debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 [preauth]debug1: SSH2_MSG_KEXINIT sent [preauth]debug1: SSH2_MSG_KEXINIT received [preauth]debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none [preauth]debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none [preauth]debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]debug1: SSH2_MSG_NEWKEYS sent [preauth]debug1: expecting SSH2_MSG_NEWKEYS [preauth]debug1: SSH2_MSG_NEWKEYS received [preauth]debug1: KEX done [preauth]debug1: userauth-request for user damian service ssh-connection method none [preauth]debug1: attempt 0 failures 0 [preauth]debug1: PAM: initializing for damiandebug1: PAM: setting PAM_RHOST to freebox-server.localdebug1: PAM: setting PAM_TTY to sshConnection closed by xxxx [preauth]debug1: do_cleanup [preauth]debug1: monitor_read_log: child log fd closeddebug1: do_cleanupHere is the ssh verbose output:$ ssh -v user@serverOpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015debug1: Connecting to server [xxxx] port 22.debug1: Connection established.debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_rsa type -1debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_rsa-cert type -1debug1: identity file /home/user/.ssh/id_dsa type 2debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_dsa-cert type -1debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_ecdsa type -1debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_ecdsa-cert type -1debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_ed25519 type -1debug1: key_load_public: No such file or directorydebug1: identity file /home/user/.ssh/id_ed25519-cert type -1debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_7.1debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3 pat OpenSSH_6.6.1* compat 0x04000000debug1: Authenticating to server:22 as 'user'debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: server->client chacha20-poly1305@openssh.com <implicit> nonedebug1: kex: client->server chacha20-poly1305@openssh.com <implicit> nonedebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: Server host key: ecdsa-sha2-nistp256 SHA256:v4BNHM0Q33Uh6U4VHenA9iJ0wEyi8h0rFVetbcXBKqAdebug1: Host 'server' is known and matches the ECDSA host key.debug1: Found key in /home/user/.ssh/known_hosts:2debug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug1: SSH2_MSG_NEWKEYS receiveddebug1: Roaming not allowed by serverdebug1: SSH2_MSG_SERVICE_REQUEST sentdebug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickey,passworddebug1: Next authentication method: publickeydebug1: Trying private key: /home/user/.ssh/id_rsadebug1: Skipping ssh-dss key /home/user/.ssh/id_dsa for not in PubkeyAcceptedKeyTypesdebug1: Trying private key: /home/user/.ssh/id_ecdsadebug1: Trying private key: /home/user/.ssh/id_ed25519debug1: Next authentication method: passworduser@server's password:
SSH keeps skipping my pubkey and asking for a password
ssh;password;authentication