Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

cannot rsh linux using public key

I have 2 linux computers. I am trying to rsh from one to the other w/o passwords. I've done this successfully before, but I can't figure out what's wrong this time. On computer A, logged in as user ohprs', I ran ssh-keygen which created ~/.ssh/id_rsa.pub. Permisions:

ls -l .ssh/id_rsa.pub
-rw-r--r-- 1 ohprs ohprs 394 Apr  4 20:37 .ssh/id_rsa.pub

I copied the contents of that id_rsa.pub file. Then, on computer B, I logged in as user 'ohprs' and pasted the aforementioned copy to the file ~/.ssh/authorized_keys. Permissions:

ls -l .ssh/authorized_keys
-rw-r--r-- 1 ohprs ohprs 394 2012-04-04 20:39 .ssh/authorized_keys

I thought this would be sufficient to ssh w/o supplying a password, but it still prompts me for a password when trying to ssh from machine A to machine B.
ASKER CERTIFIED SOLUTION
Avatar of Papertrip
Papertrip
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark
Mark

ASKER

sorry, yes I did mean ssh.

I fixed it. Apparently, in all the times machine A was prompting me for a password I never actually tried to enter one. When I tried following your instructions to scp none of my password attempts worked. It turns out that I never set a password on that account. When I did so, my ssh worked just fine!