I have two users each with their own computers running Ubuntu. I want to remotely access one of them (say the desktop server) from the other one (say the client pc).
I'm trying to enable public key based authentication following the relative section in this answer (Connect two computers with SSH in a home LAN).
I started with the command from the client pc
ssh-keygen -t rsa -b 4096
After setting the file in which to save the key and the passphrase I launch the following command:
ssh-copy-id emanuele@emanuele-desktop.local
where emanuele@emanuele-desktop is the user@comp of the desktop server to which I'd like to remotely access
/usr/bin/ssh-copy-id: ERROR: No identities found
Any idea of what I'm missing?
-i
option – steeldriver Feb 09 '21 at 17:42