Click here to get back home

Net::SSH:Perl on Solaris and passwd

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Net::SSH:Perl on Solaris and passwd Tweetie Pooh 09-28-2004
Posted by Tweetie Pooh on September 28, 2004, 11:24 pm
Please log in for more thread options
This topic has come up in other places but solutions offered are either too
complex or just don't work.

I am trying to write an app for an internal LAN (so total security is not
really an issue). One of the functions required is to run passwd as root
on a remote box.

I now have the app connecting fine using keys in ssh-agent so no passphrase
is required at run time. The login occurs OK, from syslog messages.

I have implemented the register_handler for packets as per
remoteinteract.pl as we have to use SSH-1.

First try just showed "Sorry". This is due to the security mechanism I
know about re tty on the session (ssh -t from shell). So I add the pty flag
to the ssh session.

The program now run to the cmd("passwd username") and then waits. I can
see the passwd running on the target host. I now need to kill passwd or my
local program to get console back.

The source box has a latter version of OpenSSH but Net::SSH::Perl only has
protocol 1 built. The remote has only SSH-1.

Any ideas?

TIA


Similar ThreadsPosted
username passwd expect September 14, 2006, 12:36 am
perl-gtk installation failing on Solaris March 20, 2007, 7:28 am
Building Perl module GD::Text on Solaris 10 August 3, 2007, 3:37 pm
Looking for pre-built DBI/DBD:Oracle modules for Perl 5.8.4 on Solaris 10 platform May 6, 2008, 5:02 pm
GD module on Solaris 9 September 3, 2004, 11:10 am
How can I install the DBI on Solaris February 24, 2005, 4:16 pm
Installing DBI-1.53 on Solaris November 29, 2006, 6:16 am
DBI compilation error on Solaris February 24, 2005, 6:04 pm
Sybperl errors on Solaris 2.9 March 2, 2005, 8:52 am
File::Find on Solaris v8-10 August 1, 2005, 11:06 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap