Re: rsa and ssh
Phil Brutsche <pbrutsch@tux.creighton.edu> 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 user@remote:$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 user@remote:~/.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
Reply to: