View Single Post
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#167
Kytrix you are using > this means the file is erased. You need to use >> in case the user already made her own authorized_keys. In general, one doesn't have to delete these unless one knows what one is doing.

Originally Posted by Laughing Man View Post
I've never been able to get past this step.

ssh-copy-id -i ~/.ssh/id_rsa.pub username@host

I've tried the command both from the server (my tablet using username@host being my laptop or desktop). And vice versa my laptop or desktop to the server (thus username@host being my tablet). Neither works..
On the NIT you create your key. Then you copy this to your server (with scp or ssh-copy-id). Then you add the content to ~/.ssh/authorized_keys. Then you might have to enable public key authentication in the server SSHd: make sure PubkeyAuthentication is set to yes in /etc/ssh/sshd_config and restart SSHd with /etc/init.d/ssh restart (might differ a bit per OS but in general this is the way to Rome).
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!