I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-06-30 23:55:26-07 by jmarshll
64-bit code won't compile and can't connect to sftp server
Hi, Perl/SSH/SFTP noob here. I really want to use this package, but I'm having a couple of problems +. 1) I get "Invalid type Q" errors in Buffer.pm due to the use of the Q template in pack statements, +like: use constant HAS_QUADS => eval { no warnings; pack(Q => 0x1122334455667788) eq "\x11\x22\x33\x44\x55\x66\x77\x88" }; If I comment out all the code that references quads, it compiles. But, I'd rather figure out why I +can't use it as it is. 2) Running with the quad code commented out of Buffer.pm as described above, I am not able to conne +ct to my sftp server. I can use the same values at the command line to connect just fine using SFT +P (not SSH), but using this module I get the not-so-enlightening error msg "SSH connection failed: + bad remote message received". This error comes back very quickly, much more quickly than the serv +er responds when I connect at the cmd line via SFTP. The code looks like this: my $sftp = Net::SFTP::Foreign->new(host => $host, user => $user, port => $port, more => [qw(-i +/home/me/.ssh/priv_key_filename)]); One thing I should mention that may be related, when I try to connect to the server using SSH at th +e cmd line (as opposed to SFTP which works fine), I get the response "Shell access has been disabl +ed by the system administrator." I have no control over the server configuration. I'd very much like to use this package, so if there is any advice out there on these issues, I'd ve +ry much like to hear it. Thanks in advance for the help. James
Direct Responses: 5595 | Write a response