Submitted by jahlewis on Wed, 04/07/2010 - 08:54
I've configured my virtualmin server to backup all virtual servers nightly to another system via ssh. When I run this setup manually with the saved password, it works fine. However, when it runs at the scheduled time, the password fails. I can login via ssh with the password, so it appears to be something with the scheduled/cron job part. The password is complex, but does not have an @ in it.
We've tried changing the password to others, but the behaviour repeats itself.
help...
Status:
Active
Comments
Submitted by JamieCameron on Wed, 04/07/2010 - 12:41 Comment #1
Does the password perhaps have any other special characters, like comma, slash or backslash?
Submitted by jahlewis on Thu, 04/08/2010 - 08:14 Comment #2
No, we've tried a variety of passwords, some very simple (lower case and numbers only). All have the same issue. Works manually, fails using the scheduled time.
Here's the log result: Failed to connect to SSH server : root@10.0.8.54's password: Permission denied, please try again.
root@10.0.8.54's password: Permission denied, please try again.
root@10.0.8.54's password: Permission denied (publickey,gssapi-with-mic,password).
lost connection
Submitted by JamieCameron on Thu, 04/08/2010 - 12:11 Comment #3
Does it still fail if you setup the destination account to allow password-less (public key) logins by root?
That would help determine if the cause is really the password, or something else..
Submitted by jahlewis on Mon, 04/12/2010 - 15:45 Comment #4
I changed the setting. We'll see tomorrow. Thanks.