Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Weird error with Cryprt::Blowfish and Crypt::DES

by Anonymous Monk
on Aug 28, 2008 at 19:45 UTC ( #707577=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Weird error with Cryprt::Blowfish and Crypt::DES
in thread Weird error with Cryprt::Blowfish and Crypt::DES

Thanks... How to apply the explanation wasn't total clear to me since I was originally try to hack up the DES.pm to find where the data was being passed incorrectly before I found this thread. Attached is a clear example:

use utf8; my $username = $connection->{'username'}; my $password = $connection->{'password'}; my $ip = $connection->{'ip'}; chomp( $username , $password , $ip ); utf8::downgrade($username); utf8::downgrade($password); my $ssh = Net::SSH::Perl->new($ip , port => 'ssh' ); $ssh->login($username, $password); my($out, $err) = $ssh->cmd($cmd || "ls -l"); print $out;


Comment on Re^4: Weird error with Cryprt::Blowfish and Crypt::DES
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://707577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-04-19 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (481 votes), past polls