in reply to Expect and CSSH
You should be using a public/private key pair to enable login without using a password. It's arguably more secure, and once you get it working you'll wonder how you ever got along without it.
These instructions are for a Un*x like environment, this is entirely possible under Windows too. If you don't currently have an id_*.pub in the .ssh under your home directory, run "ssh-keygen" to create one. Your remote systems also have a ~/.ssh directory, which should be chmod 0700. Append the id_*.pub (by default, id_rsa.pub) file from your client machine (where you're running this Perl) to ~/.ssh/authorized_keys on your server machine (if it doesn't exist yet, create it).
Now you can ssh and scp from your client machine to your server without having to enter a password, and you can make the password on the server devilishly difficult and long because you no longer have to remember it, and the chances of someone brute forcing it or looking over your shoulder and seeing you type it goes way down.
And you're not storing your password in plain text in a Perl script, and you can bypass this problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Expect and CSSH
by Monkless (Acolyte) on Feb 15, 2012 at 06:22 UTC |