Hi
Would anyone know how to accomplish via remote ssh same capabilities as can be accomplished via rsh command as noted under 1)?
The 1-st rsh based command works. The local filex is read into rsh chpasswd command on the remote server.
1) cat filex| rsh serverx chpasswd
The below 2-nd command does not work. I want to eliminate placing filex on each remote server where I want to run the chpasswd due to its sensitive nature even though I will delete it after I am done.
2) cat filex |/usr/local/bin/ssh -n -q -o "StrictHostKeyChecking no" -o "BatchMode yes" root@serverx chpasswd
Would anyone know how to accomplish via remote ssh same capabilities as can be accomplished via rsh command as noted under 1)?
The 1-st rsh based command works. The local filex is read into rsh chpasswd command on the remote server.
1) cat filex| rsh serverx chpasswd
The below 2-nd command does not work. I want to eliminate placing filex on each remote server where I want to run the chpasswd due to its sensitive nature even though I will delete it after I am done.
2) cat filex |/usr/local/bin/ssh -n -q -o "StrictHostKeyChecking no" -o "BatchMode yes" root@serverx chpasswd