ssh and rsync without password
Michael K. Smith
mksmith at noanet.net
Wed Mar 26 20:08:48 PST 2003
Hello:
You should be appending your keys to ~/.ssh/authorized_keys. The steps in
your previous message were correct. To reiterate.
1) Generate your keys on your local machine:
- ssh-keygen -t rsa
2) When prompted for a password, do not enter one. This will generate a
password-less key called id_rsa, and a public key id_rsa.pub
3) Copy the id_rsa.pub key over to the machine you want to ssh to. NOTE:
change the filename first or you may overwrite your existing RSA key for
your remote host. Like this:
- local: cp id_rsa.pub local.key
- scp local.key remote:
- cat local.key >> .ssh/authorized_keys
At this point, your remote machine should accept a passwordless login from
that "local" machine.
Mike
Michael K. Smith NoaNet
206.219.7116 (work) 206.579.8360 (cell)
mksmith at noanet.net http://www.noanet.net
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of
> Kung Foo Ham[p]?ster
> Sent: Wednesday, March 26, 2003 12:04 PM
> To: adrian kok
> Cc: freebsd-questions at freebsd.org
> Subject: Re: ssh and rsync without password
>
>
> authorized_keys [or authorized_keys2(depricated)]
>
> not authorized-keys _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/free> bsd-questions
>
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list