I copied my public ssh key to a remote server, but the authentication fails with the following ssh output:ilya@workstation ~ % ssh -v ilya@remoteserverOpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015debug1: Reading configuration data /home/ilya/.ssh/configdebug1: /home/ilya/.ssh/config line 7: Applying options for remoteserverdebug1: /home/ilya/.ssh/config line 43: Applying options for *debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 20: Applying options for *debug1: Hostname has changed; re-reading configurationdebug1: Reading configuration data /home/ilya/.ssh/configdebug1: /home/ilya/.ssh/config line 43: Applying options for *debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 20: Applying options for *debug1: Connecting to remoteserver.tu-darmstadt.de [130.83.70.XXX] port 22.debug1: Connection established.debug1: identity file /home/ilya/.ssh/id_rsa type 1debug1: identity file /home/ilya/.ssh/id_rsa-cert type -1debug1: identity file /home/ilya/.ssh/id_dsa type -1debug1: identity file /home/ilya/.ssh/id_dsa-cert type -1debug1: identity file /home/ilya/.ssh/id_ecdsa type -1debug1: identity file /home/ilya/.ssh/id_ecdsa-cert type -1debug1: identity file /home/ilya/.ssh/id_ed25519 type -1debug1: identity file /home/ilya/.ssh/id_ed25519-cert type -1debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_6.6.1debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1debug1: match: OpenSSH_6.6.1 pat OpenSSH_6.6.1* compat 0x04000000debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com nonedebug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com nonedebug1: sending SSH2_MSG_KEX_ECDH_INITdebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: Server host key: ECDSA 77:35:a6:ca:15:66:5d:05:33:ab:35:35:c6:65:ed:79 [MD5]debug1: Host 'remoteserver.tu-darmstadt.de' is known and matches the ECDSA host key.debug1: Found key in /home/ilya/.ssh/known_hosts:60debug1: ssh_ecdsa_verify: signature correctdebug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug1: SSH2_MSG_NEWKEYS receiveddebug1: SSH2_MSG_SERVICE_REQUEST sentdebug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,passworddebug1: Next authentication method: publickeydebug1: Offering RSA public key: /home/ilya/.ssh/id_rsadebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,passworddebug1: Trying private key: /home/ilya/.ssh/id_dsadebug1: Trying private key: /home/ilya/.ssh/id_ecdsadebug1: Trying private key: /home/ilya/.ssh/id_ed25519debug1: Next authentication method: passwordThe permission seem to fit: the ~/.ssh folder on the local workstation was set to 700 and ~/.ssh/authorized_keys on the remote server was set to 600.Do you have any idea, what the problem cold be?@Jakuje$ ls -lZd ~ilya ~ilya/.ssh/ ~ilya/.ssh/authorized_keysdrwxr-x--- ilya ilya ?                                /home/ilyadrwxrwxr-x ilya ilya ?                                /home/ilya/.ssh/-rw------- ilya ilya ?                                /home/ilya/.ssh/authorized_keys
ssh public key authentication fails
ssh
The ~/.ssh folder can not be writable by anyone else than the owner. Remove the group permissions entirely (the below command on the server) and you should be good:chmod g-rwx ~ylia/.ssh