automate ssh login

James Knott james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Thu Jan 22 22:53:01 UTC 2004


James wrote:
> hello,
> 
> 
> I need to write a perl script to automate a ssh login. the script is run by system user 'lp' which
> doesn't have a home directory. 
> 
> i was using Net::SSH::Perl but the implementation is too slow in my case. so i thought i would opt
> for ssh Key authtication.  since 'lp' doesn't have a home dir, i have to go all the way trouble to
> do login from a user who has a home dir, then use the  generated .ssh dir for the 'lp' user. it's
> a pain to set it up but it works. 
> 
> but this script will be used for other department too and log in to different server. i am
> wondering if there is a way as easy as to provide user name and password from the ssh command line
> ?  or, works better and easiser set up in my case ?

As I recall, you can configure ssh to not require a password, by using 
digital signatures.



--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list