Date: Wed, 26 Mar 2003 12:08:44 -0800 From: "Michael K. Smith" <mksmith@noanet.net> To: "'Kung Foo Ham[p]?ster'" <freebsd@kungfoohampster.com>, "'adrian kok'" <adriankok2000@yahoo.com.hk> Cc: freebsd-questions@freebsd.org Subject: RE: ssh and rsync without password Message-ID: <004f01c2f3d3$8126d510$5e015140@mkssony> In-Reply-To: <1048709049.3e8207b9695ca@tools.kungfoohampster.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@noanet.net http://www.noanet.net > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Kung Foo Ham[p]?ster > Sent: Wednesday, March 26, 2003 12:04 PM > To: adrian kok > Cc: freebsd-questions@freebsd.org > Subject: Re: ssh and rsync without password > > > authorized_keys [or authorized_keys2(depricated)] > > not authorized-keys _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/free> bsd-questions > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004f01c2f3d3$8126d510$5e015140>