Re: SSH Remote Execution - su?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mar 4, 2010, at 10:58 AM, Tim Nelson wrote:

> ----- "Les Mikesell" <lesmikesell@xxxxxxxxx> wrote:
>> 
>> What's the problem with key-based ssh directly as root?
>> 
> 
> Not a thing, except I'd have to login and update that many systems before I'm able to get any real work done. Maybe I'll use the presented expect scripting (very similar to my test run) to get the appropriate keys installed, then proceed using puppet et all for the rest...
> 
> --Tim

perl Net::OpenSSH also would solve this problem. We successfully got it working for our needs. 

my ($in, $out, $err, $pid) = $ssh->open3({tty => 1}, $cmd, @args) or die ...

You may get a weird warning message from SSH when using sudo. CPAN RT #52687 documents the reason and how to fix it. If you are interested, let me know and I can give you more details.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux