Error changing password AIX

Sanjeev Raghav
Sanjeev Raghav used Ask the Experts™
on
Hello  Experts ,
 
I am ssh to a server to change password .  sudo passwd sr185218 (where sr185218 is user)  . I am able to fire the command manually and no error but while trying to run same command from shh getting error i.e. not able to change password on AIX Machine .

ssh logs and error is given below
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++debug1: Next authentication method: password^M^M
sr185218@ibm5403's password: ^M
debug1: Authentication succeeded (password).^M^M
debug1: channel 0: new [client-session]^M^M
debug1: Requesting no-more-sessions@openssh.com^M^M
debug1: Entering interactive session.^M^M
debug1: Sending environment.^M^M
debug1: Sending env LANG = en_US^M^M
debug1: Sending command: /home/sr185218/sr185218.sh^M^M
Error changing password for "sr185218".^M
Changing password for "sr185218"^M
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0^M^M
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0^M^M
debug1: channel 0: free: client-session, nchannels 1^M^M
Transferred: sent 2088, received 3648 bytes, in 0.0 seconds^M^M
Bytes per second: sent 44153.9, received 77142.5^M^M
debug1: Exit status 6^M^M
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Could you please advice ...
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
Try

ssh -tt ... ...

Author

Commented:
Thank you very much  Sir ,

It really helped me a lot .   Appreciating from core of my heart .


Regards
Sanjeev Raghav

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial