LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Login to remote machine with encrypted password (http://www.linuxquestions.org/questions/linux-newbie-8/login-to-remote-machine-with-encrypted-password-932655/)

smilemukul 03-04-2012 08:30 AM

Login to remote machine with encrypted password
 
Hi,
I am trying to login to the remote machine using username & password(clear text) through ssh while using expect script but i dont want the password to be seen by anyone in the script, so how can i encrypt the password through md5sum or openssl in the script so that the authentication to the remote machine can be excepted through encrypted password but without signing the ssh keys between server & client.

Any solution/assistance/advice will be appreciated.

T3RM1NVT0R 03-04-2012 02:27 PM

@ Reply
 
Hi smilemukul,

Isn't configuring key based authentication a better and simple idea? Here is the link: http://linuxproblem.org/art_9.html

chrism01 03-04-2012 07:44 PM

ssh auth keys makes more sense, as above, but another option is ssh-agent.
Basically you login to ssh-agent manually, supplying user/passwd when prompted; then any process run from that session can access those credentials automatically.

smilemukul 03-07-2012 01:03 AM

Actually I want to write a script (Bash or Perl) but does not want to share the password in the script, how can this be achieved.

manyrootsofallevil 03-07-2012 02:55 AM

Quote:

Originally Posted by smilemukul (Post 4620526)
Actually I want to write a script (Bash or Perl) but does not want to share the password in the script, how can this be achieved.

is this you? http://stackoverflow.com/questions/9...-from-a-script

smilemukul 03-16-2012 12:46 AM

I had search the same on the web but didn't find any help.

Satyaveer Arya 03-16-2012 02:21 AM

smilemukul,

Checkout this link if it helps you: http://mah.everybody.org/docs/ssh
http://macnugget.org/projects/publickeys/


All times are GMT -5. The time now is 12:47 AM.