On ubuntu/mint, all I need to do for passwordless ssh login is:ssh-keygen -t rsa # on both pcssh-copy-id targetpcssh targetpc # does not prompt from password anymoreand that's all.. I do the same on archlinux (or manjaro), it's not working on the third step, it still prompts for password.. debug1: Reading configuration data /home/blablabla/.ssh/configdebug1: Reading configuration data /etc/ssh/ssh_configdebug1: Connecting to 192.168.11.3 [192.168.11.3] port 22.debug1: Connection established.debug1: identity file /home/blablabla/.ssh/id_rsa type 1debug1: identity file /home/blablabla/.ssh/id_rsa-cert type -1debug1: identity file /home/blablabla/.ssh/id_dsa type 2debug1: identity file /home/blablabla/.ssh/id_dsa-cert type -1debug1: identity file /home/blablabla/.ssh/id_ecdsa type 3debug1: identity file /home/blablabla/.ssh/id_ecdsa-cert type -1debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_6.2debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1debug1: match: OpenSSH_6.1 pat OpenSSH*debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: server->client arcfour hmac-md5 zlib@openssh.comdebug1: kex: client->server arcfour hmac-md5 zlib@openssh.comdebug1: sending SSH2_MSG_KEX_ECDH_INITdebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: Server host key: ECDSA 71:d2:05:dd:21:d1:ae:fc:a8:e5:f2:1c:2c:60:31:85debug1: Host '192.168.11.3' is known and matches the ECDSA host key.debug1: Found key in /home/blablabla/.ssh/known_hosts:11debug1: ssh_ecdsa_verify: signature correctdebug1: 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: Offering RSA public key: /home/blablabla/.ssh/id_rsadebug1: Authentications that can continue: publickey,passworddebug1: Offering DSA public key: /home/blablabla/.ssh/id_dsadebug1: Authentications that can continue: publickey,passworddebug1: Offering ECDSA public key: /home/blablabla/.ssh/id_ecdsadebug1: Authentications that can continue: publickey,passworddebug1: Next authentication method: passwordand when using old home directory (from ubuntu), the ssh-copy-id shows some information that i've never seen before/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keysis there some steps missing that i should do on archlinux?EDIT: the version of openssh is differ on both machine, one is 6.1p1-6, others was 6.2p1-1
Passwordless ssh on archlinux (after ssh-copy-id still prompts for password)
ssh;arch linux
Typically it means your home directory or .ssh/ directories do not have correct permissions. check out the remote end's syslogs for errors from sshd.for example, a line containing:sshd[pid]: Authentication refused: bad ownership or modes for directory /home/yourusernameon/var/log/auth.logmeans you must dochmod 700 ~