From daveb at esat.net Fri Mar 11 04:38:13 2005 From: daveb at esat.net (Dave Burke) Date: Fri Mar 11 04:37:51 2005 Subject: [Dub-pm] Perl & SSH Message-ID: <1110544693.11241.13.camel@bilbo.esat.net> Hello, I've got an internal looking glass for some of our support types to use. Its basically MRLG hacked to include a few extra features. It was working great until we started turning off telnet on certain routers, so I now need to upgrade it to talk to the routers via ssh. I'd prefer to just add to the existing script, so I've been looking at the various ways that perl & ssh work. Net::SSH Good: libnet-ssh-perl package for debian, so I dont have to build any modules Bad: doesn't support passwords. Net::SSH::Perl Good: Supports passwords Bad: No deb package && lots of dependencies for building the module Or, would I be better off just using something like Expect.pm? Opinions welcomed on the best way to do SSH with passwords in perl. Thanks, Dave From doc at gmail.com Fri Mar 11 04:48:44 2005 From: doc at gmail.com (Dave O Connor) Date: Fri Mar 11 04:48:54 2005 Subject: [Dub-pm] Perl & SSH In-Reply-To: <1110544693.11241.13.camel@bilbo.esat.net> References: <1110544693.11241.13.camel@bilbo.esat.net> Message-ID: > Net::SSH::Perl > Good: Supports passwords > Bad: No deb package && lots of dependencies for building the module Have you tried dh-make-perl? It's succeeeded in building pretty much any perl module I've tried into a .deb. I guess It depends on how nice you'd like your code :-). I'd imagine having Net::SSH::Perl would be much preferable, but if you're that worried about installing a few packages on a machine.... - DoC From tobinjt at netsoc.tcd.ie Fri Mar 11 05:43:12 2005 From: tobinjt at netsoc.tcd.ie (John Tobin) Date: Fri Mar 11 05:43:25 2005 Subject: [Dub-pm] Perl & SSH In-Reply-To: <1110544693.11241.13.camel@bilbo.esat.net> References: <1110544693.11241.13.camel@bilbo.esat.net> Message-ID: <20050311134312.GA22961@matrix.netsoc.tcd.ie> On Fri, Mar 11, 2005 at 12:38:13PM +0000, Dave Burke wrote: > It was working great until we started turning off telnet on certain > routers, so I now need to upgrade it to talk to the routers via ssh. > I'd prefer to just add to the existing script, so I've been looking at > the various ways that perl & ssh work. > > Net::SSH > Good: libnet-ssh-perl package for debian, so I dont have to build any > modules > Bad: doesn't support passwords. > > Net::SSH::Perl > Good: Supports passwords > Bad: No deb package && lots of dependencies for building the module > > Or, would I be better off just using something like Expect.pm? I've written code to talk to Cisco boxes, and I'd suggest using Expect.pm. Net::SSH doesn't support passwords, and Cisco's crap SSH implementation doesn't support keys. Net::SSH::Perl does support passwords, but I couldn't get it to talk to Cisco's SSH - it couldn't negotiate a common set of capabilities or something. Try something like autoexpect -p ssh -1 -4 -x -a -e none system@router and convert the resulting Expect script to Perl + Expect.pm. -- John Tobin "It would be skewed and bias [sic] to only quote people that are anti-Linux or anti-open source. I have done this for years, and will continue to do so . . . " -- Kenneth Brown, Alexis de Tocqueville Institution http://www.adti.net/samizdat/brown.reply.june.04.html From daveb at esat.net Fri Mar 11 06:42:02 2005 From: daveb at esat.net (Dave Burke) Date: Fri Mar 11 06:41:43 2005 Subject: [Dub-pm] Perl & SSH In-Reply-To: <20050311134312.GA22961@matrix.netsoc.tcd.ie> References: <1110544693.11241.13.camel@bilbo.esat.net> <20050311134312.GA22961@matrix.netsoc.tcd.ie> Message-ID: <1110552122.11241.16.camel@bilbo.esat.net> On Fri, 2005-03-11 at 13:43 +0000, John Tobin wrote: > I've written code to talk to Cisco boxes, and I'd suggest using > Expect.pm. Net::SSH doesn't support passwords, and Cisco's crap SSH > implementation doesn't support keys. Net::SSH::Perl does support > passwords, but I couldn't get it to talk to Cisco's SSH - it couldn't > negotiate a common set of capabilities or something. Try something like > autoexpect -p ssh -1 -4 -x -a -e none system@router > and convert the resulting Expect script to Perl + Expect.pm. Thanks John. I'll go give Expect.pm a shot so. Dave From glim at mycybernet.net Sat Mar 19 11:46:00 2005 From: glim at mycybernet.net (glim@mycybernet.net) Date: Sat Mar 19 12:13:43 2005 Subject: [Dub-pm] Yet Another Perl Conference, North America, 2005 Registration now open Message-ID: ----------> Yet Another Perl Conference, North America, 2005 Registration now open. Conference dates: Monday - Wednesday 27 - 29 June 2005 Location: 89 Chestnut Street http://89chestnut.com/ University of Toronto Toronto, Ontario, Canada Info at: http://yapc.org/America Direct registration: http://donate.perlfoundation.org/index.pl?node=registrant%20info&conference_id=423 Full registration fee $85 (USD) Book now for great deals on accommodations and ensure a space for yourself. Speaking slots are still open. If you would like to present at YAPC::NA 2005, see: http://yapc.org/America/cfp-2005.shtml Details of this announcement: http://yapc.org/America/registration-announcement-2005.txt <---------- More Details ============ Registration for YAPC::NA (Yet Another Perl Conference, North America) 2005 in Toronto, Ontario, Canada is now open. The conference registration price is USD$85. This price includes admission to all aspects of the conference, respectable amounts of catering, several activities and a few conference goodies. The YAPC North America 2005 conference features... * Fantastic speakers + most are the core creators of the technology on which they present + many are professional IT authors, trainers and conference speakers * An excellent learning opportunity * A chance to meet Perl professionals from all over North America and the world + YAPC attendees tend to be very involved in Perl and so are another great way to learn more about what the language has to offer beyond just what the speakers have to say * Extra-curricular / after hours activities * A great location in downtown Toronto All this, and the price is more than an order of magnitude cheaper than what commercial conferences can offer. This is because YAPC is a 100% volunteer effort, both from its organizers and its speakers. Quality is *not* sacrificed to achieve this stunning level of affordability. YAPC provides the best value-for-dollar in IT conferences. And it's a ton of fun, too. The dates of the conference are Monday - Wednesday 27-29 June 2005. The location is 89 Chestnut Street in downtown Toronto, Ontario, Canada. (Note that a different date block was previously announced; we moved the conference date to accommodate venue availability.) http://89chestnut.com/ -- a facility within the University of Toronto If you are at all interested in attending the conference... Book now! Book now! Book now! We have room for about 400 attendees and we hope to sell out well in advance of the late June conference date. However, the critical matter is that of hotels. The YAPC::NA 2005 organizers have made group arrangements with several facilities around the city to provide _excellent_ quality accommodations in _very_ convenient locations at _terrific_ prices for the _full_ capacity of conference attendees (around 400 people). (Finding, booking and paying accommodations is the responsibility of the attendees, but we will provide you with a list of the hotels and university dorms to try first based on our group arrangement with them when you register for the conference. Also, see the web site at http://yapc.org/America/accommodations-2005.shtml. More details will be up shortly. The dorm option will be approx. C$55/night, the hotel options will be more like C$90/night, and for slightly different prices there will be options for putting more than 1 person in a room. Exact details and how to book will be emailed directly to people who have registered for the conference as soon as they become available.) *The catch is -- book now!!* The group reservations will expire in early May, at which point in time the group rates will mostly still apply, but the rooms will be given out on an "availability basis". Which means that someone else outside of the YAPC group can book the rooms as well. Make no mistake -- the rooms *will* be sold. Toronto is a very active conference city in the summer and there will be _no_ guarantee of vacancies either at the facilities we made arrangements with or anywhere else in the city if you leave it to within 6 weeks of the conference date. So, if you want to save yourself the likely-fruitless headache of scrambling around looking for accommodations at the last minute, Book now! Book now! Book now! Have any questions? Email na-help@yapc.org for more details. Additionally, we are still welcoming submissions for proposals via: http://yapc.org/America/cfp-2005.shtml The close of the call-for-papers is April 18, 2005 at 11:59 pm (Toronto time). If you have any questions regarding the call-for-papers or speaking at YAPC::NA 2005 please email na-author@yapc.org We would love to hear from potential sponsors. Please contact the organizers at na-sponsor@yapc.org to learn about the benefits of sponsorship.