Re: Bizarre passwordless scp problem, help




Chuck wrote:
rsb-asp-google@xxxxxxxxxxxxx wrote:
If anybody can help me with this it would be appreciated.

I'm attempting to do scp to another machine via a script invoked by a
cronjob, therefore it must be passwordless. I have gen'd the id_rsa.pub
and copied it over to the receiving machine and here lies the rub...

After creating the .ssh/ directory in the homedir of the receiving
machine and cating the pub id to the .ssh/authorized_keys file
(creating it in the process), the scp still does not work passwordless.
I have followed the same procedure for another account on the receiving
machine and it works just fine.

Any ideas????

TIA
Steve Ellis.


Couple of things to check...

Did you cache the private key on the client with ssh-agent or keychain?

How would I know?


Are the .ssh directory and authorized_keys file in the correct user's
home directory on the server?

Yes according to /etc/passwd, but I get the feeling that that is not
where ssh is being looked for it.


Are the permissions on the authorized_keys file correct? Should be 600.

I did a chmod 600 and it didn't help.

BTW, the authorized_keys on the id that works isn't 600.

.



Relevant Pages

  • Re: Bizarre passwordless scp problem, help
    ... and copied it over to the receiving machine and here lies the rub... ... the scp still does not work passwordless. ... Are the permissions on the authorized_keys file correct? ...
    (comp.security.ssh)
  • Re: Bizarre passwordless scp problem, help
    ... and copied it over to the receiving machine and here lies the rub... ... the scp still does not work passwordless. ... Did you cache the private key on the client with ssh-agent or keychain? ...
    (comp.security.ssh)
  • Re: Bizarre passwordless scp problem, help
    ... the scp still does not work passwordless. ... Did you cache the private key on the client with ssh-agent or keychain? ... which work successfully have an sshd daemon started by them; ...
    (comp.security.ssh)
  • Bizarre passwordless scp problem, help
    ... cronjob, ... and copied it over to the receiving machine and here lies the rub... ... the scp still does not work passwordless. ...
    (comp.security.ssh)
  • Re: Documentation/Drafts for scp?
    ... It it operates just like cp except it will use ssh to copy from or to ... If both computer A and computer B are remote, then scp will operate ... and going through the local computer. ... if you want passwordless operation, A and B need to be able to passwordless ...
    (comp.os.linux.misc)