From: laredotornado on 20 May 2010 12:34 Hi, I'm using Mac 10.6.3 and logged in to my machine as "davea". I'm trying to set up password-less login to a remote machine, "remote1". So I ran this command ... ssh remotelogin(a)remote1 'echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/ authorized_keys' after entering in the password to the remote machine, I then tried to SSH in using ssh remotelogin(a)remote1 However, I was prompted for a password, which I wanted to avoid. Could someone suggest additional steps to troubleshoot this problem? Thanks, - Dave
From: Randal L. Schwartz on 20 May 2010 12:55 >>>>> "laredotornado(a)zipmail" == laredotornado(a)zipmail com <laredotornado(a)gmail.com> writes: laredotornado(a)zipmail> ssh remotelogin(a)remote1 'echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/ laredotornado(a)zipmail> authorized_keys' I'm surprised that even parsed! I usually just say: ssh remotelogin(a)remote1 'cat >>.ssh/authorizedkeys' <.ssh/id_dsa.pub Far easier to understand, for both me and the computer. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
From: laredotornado on 20 May 2010 13:16 On May 20, 11:55 am, mer...(a)stonehenge.com (Randal L. Schwartz) wrote: > >>>>> "laredotornado(a)zipmail" == laredotornado(a)zipmail com <laredotorn...(a)gmail.com> writes: > > laredotornado(a)zipmail> ssh remotelogin(a)remote1 'echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/ > laredotornado(a)zipmail> authorized_keys' > > I'm surprised that even parsed! > > I usually just say: > > ssh remotelogin(a)remote1 'cat >>.ssh/authorizedkeys' <.ssh/id_dsa.pub > > Far easier to understand, for both me and the computer. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > <mer...(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > Seehttp://methodsandmessages.vox.com/for Smalltalk and Seaside discussion I found that command here -- http://snippets.dzone.com/posts/show/2335 .. Regarding my question, do you have any suggestions about why it was not working (i.e. still being prompted for a password)? - Dave
From: pk on 20 May 2010 13:08 laredotornado(a)zipmail.com wrote: > Hi, > > I'm using Mac 10.6.3 and logged in to my machine as "davea". I'm > trying to set up password-less login to a remote machine, "remote1". > So I ran this command ... > > ssh remotelogin(a)remote1 'echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/ > authorized_keys' > > after entering in the password to the remote machine, I then tried to > SSH in using > > ssh remotelogin(a)remote1 > > However, I was prompted for a password, which I wanted to avoid. > Could someone suggest additional steps to troubleshoot this problem? If it's available, I'd suggest using "ssh-copy-id", eg ssh-copy-id -i ~/.ssh/id_dsa.pub youruser(a)remotebox which basically does all the hard work for you, then try logging into the remote box as "youruser".
From: laredotornado on 20 May 2010 14:20 On May 20, 12:08 pm, pk <p...(a)pk.invalid> wrote: > laredotorn...(a)zipmail.com wrote: > > Hi, > > > I'm using Mac 10.6.3 and logged in to my machine as "davea". I'm > > trying to set up password-less login to a remote machine, "remote1". > > So I ran this command ... > > > ssh remotelogin(a)remote1 'echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/ > > authorized_keys' > > > after entering in the password to the remote machine, I then tried to > > SSH in using > > > ssh remotelogin(a)remote1 > > > However, I was prompted for a password, which I wanted to avoid. > > Could someone suggest additional steps to troubleshoot this problem? > > If it's available, I'd suggest using "ssh-copy-id", eg > > ssh-copy-id -i ~/.ssh/id_dsa.pub youruser(a)remotebox > > which basically does all the hard work for you, then try logging into the > remote box as "youruser". Is "youruser" the login I use on my local machine or the login I use to access the remote machine? - Dave
|
Next
|
Last
Pages: 1 2 3 Prev: [Press Release] WANdisco Gives Back to the Subversion Community Next: dynamic text file |