Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- automatically log into secure shell
June 9, 2006, 9:22 pm
rate this thread
Re: automatically log into secure shell
Unruh, didn't I just spank you for mis-handling newbies over on
Mike, ignore the snarking. But putting a user password in a shell script is
a *BAD* idea. It can be done with tools like "expect", but Unruh's complaint
is correct: it's just the tone and advice that are missing usefulness.
If the user needs to run this script, they should be able to use an SSH
keyring, such as "ssh-agent", to use a properly passphrased SSH key and
unlock it locally, or even keep it unlocked for overnight jobs. This stuff
is documented in exquisite detail in Richard Silverman's book on SSH, which
I highly recommend as a good reference manual for new admins or users like
What are you trying to do, anyway?
- » Anyone got the SSH Session Loging patch to work under AIX 5.2?
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum