LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-04-2012, 09:30 AM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
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.
 
Old 03-04-2012, 03:27 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi smilemukul,

Isn't configuring key based authentication a better and simple idea? Here is the link: http://linuxproblem.org/art_9.html
 
Old 03-04-2012, 08:44 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
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.
 
Old 03-07-2012, 02:03 AM   #4
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
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.
 
Old 03-07-2012, 03:55 AM   #5
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by smilemukul View Post
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
 
Old 03-16-2012, 01:46 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
I had search the same on the web but didn't find any help.
 
Old 03-16-2012, 03:21 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,413

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
smilemukul,

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

Last edited by Satyaveer Arya; 03-16-2012 at 03:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 11.04 encrypted LVM password not working after user login password change prateekm21 Linux - Security 0 10-29-2011 02:20 PM
Problem with remote login (login from another machine) mamidi Linux - Newbie 5 07-20-2011 07:13 PM
how login to remote machine with out password? bkcreddy17 Linux - Newbie 2 02-16-2009 04:30 AM
Writing to a remote machine without password fw12 Linux - General 1 11-30-2007 10:26 PM
Accessing remote shares with encrypted Samba password at bootup CyberGuy Linux - Software 1 01-09-2005 06:23 PM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration