The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Help me connect SSH passwordlessly (http://hintsforums.macworld.com/showthread.php?t=34977)

Gnarlodious 02-14-2005 10:55 PM

problem seems to be "on the other machine"
 
New information... I am able to login to my router passwordlessly, which is running a thin Linux client. In fact, I can login passwordlessly from both Macs!

So, the big problem seems to be "on the other machine" regardless of which Mac I am connecting from.

Gnarlodious 02-14-2005 11:42 PM

Solved!!!
 
Well, the previous poster who said the permissions of my userfolder was partially right. Actually the owner of folder /Volumes/Rachel was set to group "nobody" and that's apparently enough to raise the red flag.

It's possible that when I created the partition a few years ago that's the ownership that was given it and it just never changed.

Thanks guys, your guidance has been of astronomical value :D

carouzal 02-15-2005 12:06 AM

Glad it is resolved... nice to see you have been up and running 2 years on the same install... Try that on windows and let me know how you make out...LOL

The info I posted on ssh with no password is solid, I have used it for mac to mac, mac to linux, etc.. without fail... If it did not work then you may still have some config issues somewhere.

I would suggest when upgrading to Tiger (if you do) that you do a clean install, you will resolve a ton of issues that have been compounding since 10.X.X.

Gnarlodious 02-15-2005 02:22 AM

Roger that!
 
Yeah, when 10.4 hits the shelves I'm hoping it fixes a number of problems.

After some experimentation it turns out the most liberal permissions SSH allows on your userfolder is 750. Odd that I searched Google for days and didn't find any mention of this limitation.

But I think I have a firm grasp of secure logins now :rolleyes:

forbin 02-16-2005 03:14 PM

Quote:

Originally Posted by carouzal
scp ~/.ssh/id_rsa.pub [email]username@xxx.xxx.xxx.xxx:~/.ssh
Now ssh into the cube and type:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys2
rm -f ~/.ssh/id_rsa.pub

Just an fyi .. You can do this in one step ...

Cat 'your public key' | ssh username@xxxx "cat >> .ssh/authorized_keys2"

You will be prompted for username's password (Since your public key is not yet in)

Gnarlodious 02-16-2005 03:37 PM

Yes, it does work!
 
Quote:

Originally Posted by forbin
Cat 'your public key' | ssh username@xxxx "cat >> .ssh/authorized_keys2"

Yes, it works!
I thought only scp prompted for a password but I guess ssh does also.


All times are GMT -5. The time now is 06:00 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.