in reply to Run interactive commands with "Net::SSH::Expect"

I want to change password of root on remote machine

Most systems setup now, disallow root logins on telnet and ssh. It is usually setup that you login as a regular, special user, who can then run the sudo command to change the password.

This gives more security, through the sudo mechanism.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Run interactive commands with "Net::SSH::Expect"

Replies are listed 'Best First'.
Re^2: Run interactive commands with "Net::SSH::Expect"
by slayedbylucifer (Scribe) on Jan 10, 2011 at 13:28 UTC

    Thanks Zentara for taking time to go through my thread. I understand the security aspect. For this particular case, I have enabled root ssh on my system. I want to leave aside the security and make this script work. My ultimate aim is to change the password for root (or any other user for that sake) on a remote server using this script.

    This is my test environment running inside my virtualbox on my laptop, so things are cool...

    If I make this script this work, I will have a bigger implementation in my PROD environment, where of course, I can't log in as root via ssh