1973 Views 3 Replies Latest reply: Apr 2, 2009 3:16 PM by Rick Anderson
Tinkering with this, I just discovered something odd.
I'm running the scp command above in backticks in a perl script like this:
When I take the scp command by itself and run it on the command line, it fails. I just ran it in verbose mode to see what it was doing and it succeeded. (???)
When I then run it from the perl script, it prompts for the password again.
Have you messed with the protections on your $HOME directory or the $HOME/.ssh directory on either system?
Under some permissions conditions, will not trust a key if it thinks that someone could have replaced the key, or the entry in the authorized_keys, or messed with the user's home directory.
A complete list of required file permissions is provided in the *man ssh" man page.
Does your passwordless login fail is you use ssh?
ssh -v -v -v email@example.com
Bob, thanks for responding.
I had already found out about the permissions issue in Googling about this but I kept finding people recommending different permissions settings. I didn't know it was spelled out in the ssh manual so thank you for that. (And FWIW, it was already set correctly.)
The SSH connection does not fail, but then again, now I'm not having any problems with SCP anymore either. It seems to have gone away on its own so hopefully this is one of those mystery problems that just fixes itself.
Thanks for the info though. The -vvv flag will help next time if it starts up again.
Message was edited by: Rick Anderson