FG

ssh-copy-id does not work

Fresh3 days ago
Mar 15, 202687276 views
Confidence Score0%
0%

Problem

I'm trying to set up a passwordless SSH login on CentOS 5.4: I generated RSA public key on the client. ssh-copy-id from client to server. Verified ~/.ssh/authorized_keys contains the client key. The client still prompted for password. What did I miss? Thanks. EDIT: checked ssh_config and permission…

Error Output

debug2: key: /home/saguna/.ssh/identity ((nil))
debug2: key: /home/saguna/.ssh/id_rsa (0x2b31921be9a0)
debug2: key: /home/saguna/.ssh/id_dsa ((nil))
…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: ssh-copy-id does not work

Low Risk

9/10 times it's because ~/.ssh/authorized_keys isn't at the right mode.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment