[Summary] SSH from script without key
- From: Xavier Mertens <xavier@xxxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 16:43:28 +0200 (CEST)
Hi *,
My question was:
<question>
Hi *,
My problem is the following:
I need to open SSH sessions to remote hosts from scripts.
But I'm not allowed to install a key on the remote hosts. I must use a standard password authentication.
I found a Perl module (Net::SSH::Perl) which can perform this. Unfortunately, it requires the Math::Pari module (which does not compile properly on here)
Question: how could you automate SSH session from scripts 5shell or perl) with respect of performances and, of course, security?
</question>
Lot of mails (as usual ;-) and the best solution is to use Expect (http://expect.nist.gov/). In my case, I installed the Perl module (http://www.cpan.org/modules/by-module/Expect/). Everything can be done via simple perl script.
The next step is the script security! It must have access to the remote account passwords. Lot of you noticed that a better method should be to work with keys but, is this specific case, I can't :(
Regards,
Xavier
--
UNIX is user friendly. It's just selective about who its friends are
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: Jumpstart issue
- Next by Date: xntpd slewalways & daylight change
- Previous by thread: Jumpstart issue
- Next by thread: xntpd slewalways & daylight change
- Index(es):