Messed up copying ssh pub key to server?

Robert Moskowitz rgm at htt-consult.com
Thu May 15 16:47:20 UTC 2025


thanks

On 5/15/25 11:06 AM, Smoot Carl-Mitchell via ubuntu-users wrote:
> On Thu, 2025-05-15 at 10:50 -0400, Robert Moskowitz wrote:
>> Oops....
>>
>> I found the guide to do:
>>
>> ssh-copy-id -i ~/.ssh/id_rsa.pub username at ubuntu_server_ip
>>
>> in my .ssh I have:
>>
>> $ ls .ssh/
>> config      id_ed25519.pub  id_rsa.pub   known_hosts.old
>> id_ed25519  id_rsa          known_hosts
>>
>> so I did:
>>
>> ssh-copy-id -i ~/.ssh/id_ed25519.pub me at host.htt-consult.com
>>
>> I then tried
>>
>> ssh host
>>
>> I get:
>>
>> Enter passphrase for key '/home/me/.ssh/id_ed25519':
>>
>> I press enter and then get
>>
>> me at host's password:
>>
>> I enter my password and get it.  How do I get rid of that "Enter
>> passphrase"  And why is it still asking for my password?
> Check the permissions on the remote .ssh directory. It can only be
> writable by the owner, but needs to be readable by other users.  Same
> for the authorized_keys file.
>
> The passphrase prompt means your private key requires a passphrase when
> it was created.
>
> You can also debug the connection with the -v option to the ssh client
> program.
>




More information about the ubuntu-users mailing list