Phil Brutsche <[EMAIL PROTECTED]> writes: > A long time ago, in a galaxy far, far way, someone said... > > > Hi all, > > I tried as man ssh saied to login with ssh without password as: > > ssh-genkey as remote host > > scp [EMAIL PROTECTED]:$HOME/.ssh/identity.pub $HOME/.ssh/authorized_keys > > and tried ssh remote and was prompted with a password > > What is wrong? > > Yout got it backwards. That should have been > > > scp ~/.ssh/identity.pub [EMAIL PROTECTED]:~/.ssh/keyfile > ssh remote > cd .ssh > cat keyfile >> authorized_keys
Of course, you'll have to make sure the .ssh directory exists on the other host too. And make sure that the .ssh directory and everything in it have the right permissions (basically chmod go-rwx *), or else various things in ssh won't work. Hubert