Messed up copying ssh pub key to server?
Smoot Carl-Mitchell
smoot at tic.com
Thu May 15 15:06:15 UTC 2025
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.
--
Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot at tic.com
More information about the ubuntu-users
mailing list