bugsbunny has asked for the wisdom of the Perl Monks concerning the following question:
hi,
I what to automate a cisco session over ssh (not over telnet),
I probably will be able to make such script with expect module (of course pointers and ideas on this are welcome).
My problem is that I want to store the password in a secure way, what I mean... I don't want to store the password inside the script which does the ssh-connection. I also can't use crypt() like encrypting 'cause I need real password for doing ssh-connection, not some crypted-garbage (which I can compare for match w/ other crypted password) ...
So my question is how to hide the password so that it can't be decrypted easier. And do it in secure way so that even if someone get hands to my script, "to be unable" to hijack my pass and/or connect trought the script to the cisco..
tia
I what to automate a cisco session over ssh (not over telnet),
I probably will be able to make such script with expect module (of course pointers and ideas on this are welcome).
My problem is that I want to store the password in a secure way, what I mean... I don't want to store the password inside the script which does the ssh-connection. I also can't use crypt() like encrypting 'cause I need real password for doing ssh-connection, not some crypted-garbage (which I can compare for match w/ other crypted password) ...
So my question is how to hide the password so that it can't be decrypted easier. And do it in secure way so that even if someone get hands to my script, "to be unable" to hijack my pass and/or connect trought the script to the cisco..
tia
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ssh session
by liz (Monsignor) on Sep 10, 2003 at 12:26 UTC | |
Re: ssh session
by zentara (Archbishop) on Sep 10, 2003 at 14:06 UTC | |
Re: ssh session
by asarih (Hermit) on Sep 10, 2003 at 12:27 UTC | |
by bugsbunny (Scribe) on Sep 10, 2003 at 13:37 UTC | |
by liz (Monsignor) on Sep 10, 2003 at 13:56 UTC | |
Re: ssh session
by skaba9 (Beadle) on Sep 10, 2003 at 22:05 UTC |
Back to
Seekers of Perl Wisdom