|
|
How to do SSH without passwords
BE AWARE THAT GENERATING SSH KEYS WITHOUT A PASSPHRASE IS NOT THE MOST SECURE WAY TO OPERATE. I STRONGLY SUGGEST YOU CONSULT THE OPENSSH DOCUMENTATION FOR THE CORRECT WAY TO DO HANDS-FREE SSH AUTHENTICATION WITH SSH-AGENT! You want to connect from machine "left" to machine "right". Log into left:
mkdir ~/.ssh
This creates six files in your ~/.ssh directory:
identity
Log into right:
mkdir ~/.ssh
On right, create a file called "authorized_keys" (in the ~/.ssh directory). Paste the contents of the three .pub files created earlier into this file (you will have to work out for yourself the best way to do this). Now test it out. On left:
ssh username@right
It should let you in without a password. If it does not, the first thing to check is your file permissions. The ~/.ssh directories on both sides should not be writable by anyone but the owner. The .pub files should be readable by everyone, but the other key files should only be readable by their owner. The permissions should be set correctly by ssh-keygen, but you never know. There are a lot of things that can go wrong here; troubleshooting is complicated and well beyond the scope of these instructions.
HTH,
How to do SSH without passwords
I have a response to this in a separate comment...sorry about
How to do SSH without passwords
I can't get that to work between my machines... :(
They both use jaguar.5 or .4, and i've followed your instructions to the point, I used cat id_dsa.pub >> authorized_keys on all the keys, copied over with scp, to get the keys into the file..
How to do SSH without passwords
Found out that the
-C switch with argument maybe not was unimportant, I filled it in with my mail, :D. What do I enter? I have rendezvous names for both the computers, TiBook.local and Cube.local, and I have static intranet IPs, shall I use any of them? A verbose log of ssh failing (asking for pass) (sorry for looong post)
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.12 seconds |
|