- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root password was changed now rsync does not w...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 12:19 PM
тАО09-14-2010 12:19 PM
We changed our root password on both of our servers. Now, rsync is failing to authenticate.
I did not install the rsync software so I am not familiar with configuring it. Is the password in some file that needs updated? Will rsync need to be re-compiled?
Thank you for any help you can give me.
Neil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 12:29 PM
тАО09-14-2010 12:29 PM
Re: root password was changed now rsync does not work
This sounds like you have used:
--password-file=FILE
Look at your 'rsync' script parameters. If you see the above, change the password in 'FILE' appropriately.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 01:05 PM
тАО09-14-2010 01:05 PM
Re: root password was changed now rsync does not work
Please pardon my ignorance but where would the rsync parameters be defined? Are they defined in a file or at the command line?
The command that we are attempting to run is:
/usr/local/bin/rsync -av --delete -e "ssh" /lvol2b/production/ ihcc2:/datatel/co
ll18/production >>/var/adm/syslog/rsync.log
Thank you for your lightning quick response.
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 01:46 PM
тАО09-14-2010 01:46 PM
Re: root password was changed now rsync does not work
OK, so you are using 'rsync' over 'ssh' and not a yukky password file. That's good. Beside the root password change (which should not have affected this) what else was changed? Perhaps did someone due a "security" adjustment based on an auditor's "mandate"?
Regards!
....JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 02:12 PM
тАО09-14-2010 02:12 PM
Re: root password was changed now rsync does not work
Look for ssh errors in the remote server's /var/adm/syslog/syslog.log (or possibly local0.log). That might give you a clue.
Try modifying the rsync call as follows to get more information and post the output here.
rsync -av -e "ssh -v" ... ... ...
Placement of the second "v" between the quotes is important!
I am assuming you use default ssh keys, which is why you do not usually need to supply a password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 02:45 PM
тАО09-14-2010 02:45 PM
Re: root password was changed now rsync does not work
I just tested the "-v" option and the rsync was successful. I was required to type in the root password to make it work.
This is part of what I saw:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/identity
debug1: Trying private key: /.ssh/id_rsa
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
Any ideas?
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:03 PM
тАО09-14-2010 03:03 PM
Re: root password was changed now rsync does not work
Do you see any messages in the remote server's syslog?
Please post the output from:
ls -al ~root/.ssh
from both servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:10 PM
тАО09-14-2010 03:10 PM
Re: root password was changed now rsync does not work
The source has:
# ls -al ~root/.ssh
total 64
drwx------ 2 root sys 8192 Jul 14 15:30 .
drwxr-xr-x 26 root root 8192 Sep 14 18:00 ..
-rw------- 1 root sys 1675 Jul 14 15:30 id_rsa
-rw------- 1 root sys 1424 Apr 29 14:53 known_hosts
#
The destination has:
# ls -al ~root/.ssh
total 64
drwx------ 2 root sys 96 Sep 15 2008 .
drwxr-xr-x 25 root root 8192 Sep 12 05:27 ..
-rw-r--r-- 1 root sys 1111 Sep 15 2008 authorized_keys
-rw------- 1 root sys 1111 Sep 10 2008 ihcc-250-rsync-key.pub
-rw------- 1 root sys 1111 Sep 10 2008 temp
#
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:14 PM
тАО09-14-2010 03:14 PM
Re: root password was changed now rsync does not work
Sep 14 17:59:17 ihcc2 sshd[19351]: error: PAM: Authentication failed for root from ihcc
Sep 14 17:59:15 ihcc2 sshd[19349]: Failed password for root from 192.168.193.250
port 54141 ssh2
Sep 14 17:59:21 ihcc2 sshd[19351]: Failed keyboard-interactive/pam for root from
192.168.193.250 port 54147 ssh2
Sep 14 17:59:21 ihcc2 sshd[19351]: Failed password for root from 192.168.193.250
port 54147 ssh2
Sep 14 17:59:21 ihcc2 sshd[19351]: error: PAM: Authentication failed for root from ihcc
Sep 14 18:00:03 ihcc2 above message repeats 2 times
#
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:22 PM
тАО09-14-2010 03:22 PM
Re: root password was changed now rsync does not work
You haven't daid if there are any messages in the syslog.
I would expect to find something like...
Sep 15 11:16:21 svrasdf sshd[4320]: Accepted publickey for root from 10.10.10.193 port 50854 ssh2
If it worked... and summat else when it fails on the publickey; followed by acceptance of the password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:36 PM
тАО09-14-2010 03:36 PM
Re: root password was changed now rsync does not work
Did you have to recover something from a backup on the remote server?
The date of the LOCAL server's private key (~root/.ssh/id_rsa) is 14 July this year.
However, the authorized_keys file on the REMOTE server is dated Sep 2008 (indeed, all the ssh files are at least two years old).
You should probably generate a new private key on the local server, using ssh-keygen and append the resulting id_rsa.pub file to the authirized_keys file on the remote server. You will need to append the same key to every other server you want to access using passwordless SSH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 03:40 PM
тАО09-14-2010 03:40 PM
Re: root password was changed now rsync does not work
Jul 14 15:17:48 ihcc2 sshd[2049]: Accepted publickey for root from 192.168.193.250 port 58579 ssh2
There are no publickey lines in the syslog on the destination server, from where the rsync failed on July 14 to today.
On Jul 14, 16:00, it starts failing on the keyboard-interactive only:
Jul 14 16:00:23 ihcc2 sshd[3240]: SSH: Server;Ltype: Version;Remote: 192.168.193.250-59946;Protocol: 2.0;Client: OpenSSH_5.3p1+sftpf
ilecontrol-v1.3-hpn13v5
Jul 14 16:00:26 ihcc2 sshd[3240]: error: PAM: Authentication failed for root from ihcc
Jul 14 16:00:30 ihcc2 sshd[3240]: Failed keyboard-interactive/pam for root from 192.168.193.250 port 59946 ssh2
Jul 14 16:00:30 ihcc2 sshd[3240]: Failed password for root from 192.168.193.250 port 59946 ssh2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:04 PM
тАО09-14-2010 04:04 PM
SolutionThe source has:
# ls -al ~root/.ssh
total 64
drwx------ 2 root sys 8192 Jul 14 15:30 .
drwxr-xr-x 26 root root 8192 Sep 14 18:00 ..
-rw------- 1 root sys 1675 Jul 14 15:30 id_rsa
-rw------- 1 root sys 1424 Apr 29 14:53 known_hosts
#
The last "good" access was at:
Jul 14 15:17:48 ihcc2 sshd[2049]: Accepted publickey for root from 192.168.193.250 port 58579 ssh2
And the first failed access at:
On Jul 14, 16:00, it starts failing on the keyboard-interactive only:
If you can't find the corresponding public key (id_rsa.pub) for 14 July then you had better generate a new key pair.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:04 PM
тАО09-14-2010 04:04 PM
Re: root password was changed now rsync does not work
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:10 PM
тАО09-14-2010 04:10 PM
Re: root password was changed now rsync does not work
I'll check and let you know.
Thank you very much for your help. I am glad you were here today.
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:24 PM
тАО09-14-2010 04:24 PM
Re: root password was changed now rsync does not work
I did not have a id_rsa file but I did have a id_dsa.pub and it worked beautifully.
Thank you very much in your assistance in getting this fixed.
Neil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:25 PM
тАО09-14-2010 04:25 PM
Re: root password was changed now rsync does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:38 PM
тАО09-14-2010 04:38 PM
Re: root password was changed now rsync does not work
If a public/private key is used, one gets something like this:
Sep 15 10:40:00 pocuast2 sshd[2938]: SSH: Server;Ltype: Version;Remote: 10.81.105.17-49187;Protocol: 2.0;Client: OpenSSH_5.1
Sep 15 10:40:00 pocuast2 sshd[2938]: Accepted publickey for root from 10.81.105.17 port 49187 ssh2
Sep 15 12:19:30 pocuast2 sshd[2938]: SSH: Server;LType: Throughput;Remote: 10.81.105.17-49187;IN: 96208;OUT: 17952;Duration: 5970.2;tPut_in: 16.1;tPut_out: 3.0
If you need to run this rsync periodically using cron on the source (or local) server, you must use a private/public key-pair that does not require a pass-phrase - otherwise it will fail because there is no way to supply the authentication password in a non-interactive environment such as the cron.
If, on the other hand, you run it manually, then you can supply the necessary password but if a valid key-pair was present, that is tried first; only if the key exchange fails will a password be requested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 04:41 PM
тАО09-14-2010 04:41 PM