Skip Menu |

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 7728
Status: rejected
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: jason [...] froebe.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: documentation change with Net::SSH::Perl
Can you add that ssh->login() doesn't make the connection but applies the settings and that cmd() actually makes the initial connection? Also, that to catch login failures, that the cmd() has to be placed into an eval block? eval { ($stdout, $stderr, $exit) = $ssh->cmd("df -k $dump_dir"); }; if ($@) { print "SSH Connection attempt failed\n" if ($@ =~ m/Permission denied/i); } anyways, this is just a request :-)
I'm pretty sure login() _does_ make the connection, although cmd() may make another connection (which may be changed based on other tickets). Please clarify (if not clarified within a reasonable amount of time I'll mark as resolved). Thanks.