ssh-sftp-perl-users Mailing List for Net::SSH and Net::SFTP - Perl modules (Page 35)
Brought to you by:
dbrobins
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(4) |
Feb
(15) |
Mar
(13) |
Apr
(8) |
May
(5) |
Jun
(21) |
Jul
(4) |
Aug
(9) |
Sep
(11) |
Oct
(14) |
Nov
(15) |
Dec
(24) |
2005 |
Jan
(10) |
Feb
(20) |
Mar
(16) |
Apr
(10) |
May
(12) |
Jun
(16) |
Jul
(18) |
Aug
(21) |
Sep
(11) |
Oct
(19) |
Nov
(16) |
Dec
(9) |
2006 |
Jan
(17) |
Feb
(32) |
Mar
(60) |
Apr
(21) |
May
(24) |
Jun
(1) |
Jul
(6) |
Aug
(18) |
Sep
(4) |
Oct
(9) |
Nov
(31) |
Dec
(10) |
2007 |
Jan
(8) |
Feb
(11) |
Mar
(3) |
Apr
(7) |
May
(4) |
Jun
(6) |
Jul
(7) |
Aug
(3) |
Sep
(2) |
Oct
(5) |
Nov
(5) |
Dec
(5) |
2008 |
Jan
(12) |
Feb
(5) |
Mar
(7) |
Apr
(4) |
May
(37) |
Jun
(9) |
Jul
(24) |
Aug
(5) |
Sep
(2) |
Oct
(7) |
Nov
(6) |
Dec
(7) |
2009 |
Jan
(18) |
Feb
(9) |
Mar
(14) |
Apr
(14) |
May
(1) |
Jun
(14) |
Jul
(4) |
Aug
(6) |
Sep
(4) |
Oct
(12) |
Nov
(4) |
Dec
|
2010 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
(4) |
Jun
|
Jul
(6) |
Aug
(6) |
Sep
|
Oct
(7) |
Nov
(2) |
Dec
(5) |
2011 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(8) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(9) |
Dec
(7) |
2012 |
Jan
(1) |
Feb
(19) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
2014 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: nadim <na...@kh...> - 2004-10-21 18:42:01
|
this : open(FILE, '<', "evaled.pl" ) or die ; local $/ = undef ; my $file_body = <FILE> ; close(FILE) ; should be this { open(FILE, '<', "evaled.pl" ) or die ; local $/ = undef ; my $file_body = <FILE> ; close(FILE) ; } On Thursday 21 October 2004 09:48, nadim wrote: > Hi all, > > I came across a problem today and I must say that I don't have the > slightest clue of why things don't work as they should. > > In the system I have, I need to let the user setup shells, I could let the > user give data to setup shells but I'd rather get some live objects as it > is easier to not handle the diffrent types of shells I can use (local, SSH, > Telnet) and they might be other shell types only the user knows about. As > long as their shell implements the functions I need it can be whatever. > > Creating SSH session is no problem and it has worked properly so far (that > is till last night). Creating SSH sessions through evaled text simply > doesn't work as it should. I narrowed down the problem to these lines. The > code is for a minimal test to reproduce the problem not the original code. > > <test.pl> > use Net::SSH::Perl ; > > my $shell = Net::SSH::Perl->new('192.168.1.99', debug => 1); > undef $shell ; > > open(FILE, '<', "evaled.pl" ) or die ; > local $/ = undef ; > my $file_body = <FILE> ; > close(FILE) ; > > my $distributor = eval $file_body ; > die $@ if $@ ; > </test.pl> > > <evaled.pl> > use Net::SSH::Perl ; > my $shell = Net::SSH::Perl->new('192.168.1.99', debug => 1); > </evales.pl> > > The first SSH connection takes less than 0.2 seconds but the second one > (embedded in an eval) takes exactly 120 seconds!!! > > khemir.net: Reading configuration data /home/nadim/.ssh/config > khemir.net: Reading configuration data /etc/ssh_config > khemir.net: Connecting to localhost, port 22. > khemir.net: Remote protocol version 1.99, remote software version > OpenSSH_3.6.1p2 > khemir.net: Net::SSH::Perl Version 1.25, protocol version 1.5. > khemir.net: No compat match: OpenSSH_3.6.1p2. > khemir.net: Connection established. > khemir.net: Reading configuration data /home/nadim/.ssh/config > khemir.net: Reading configuration data /etc/ssh_config > khemir.net: Connecting to localhost, port 22. > khemir.net: Remote protocol version 1.99, remote software version > OpenSSH_3.6.1p2 > khemir.net: Net::SSH::Perl Version 1.25, protocol version 1.5. > khemir.net: No compat match: OpenSSH_3.6.1p2. > khemir.net: Connection established. > real 120.30 > user 0.07 > sys 0.00 > > > Any idea? > > Cheers, Nadim. > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |
From: Mark A. F. <mar...@ea...> - 2004-10-21 16:19:52
|
<HEAD> <META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD> <BODY> <DIV>You need to wrap all your ssh method calls inside an eval. Search the archive. Examples have been posted by myself a couple times.</DIV> <DIV> </DIV> <DIV>For what it's worth: I've been using the Perl Expect.pm module (on CPAN) to drive the native OpenSSH sftp binary. Interrogate results, etc. It works nicely. Not sure how it would work with the ssh binary (how it would handle a shell session.)<BR></DIV> <DIV>Mark</DIV> <DIV><BR><BR>-----Original Message----- <BR>From: "MUTNURU, RISHI KAUNDINYA (STSD)" <MR...@HP...><BR>Sent: Oct 21, 2004 5:45 AM <BR>To: ssh...@li..., per...@li... <BR>Subject: [Ssh-sftp-perl-users] Net::SSH help needed <BR><BR></DIV><ZZZHTML><ZZZHEAD><ZZZMETA content="text/ZZZhtml; charset=us-ascii" http-equiv="Content-Type"><ZZZMETA content="MSHTML 6.00.2800.1458" name="GENERATOR"> <STYLE></STYLE> </ZZZHEAD><ZZZBODY bgColor="#ffffff"> <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN class=781394212-21102004>Hi,</SPAN></FONT></DIV> <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN class=781394212-21102004></SPAN></FONT> </DIV><FONT face=Arial color=#0000ff size=2></FONT> <DIV>The Net::SSH::Perl module has by default the Die mode and if any error occur while establishing SSH connection,it terminates the program and comes out of the program.</DIV> <DIV><SPAN class=781394212-21102004>According to my requirements, the program should not die even though the login fails. Can anybody suggest how to get rid of this issue.</SPAN></DIV> <DIV><SPAN class=781394212-21102004></SPAN> </DIV> <DIV><SPAN class=781394212-21102004><FONT face=Arial color=#0000ff size=2>Regards,</FONT></SPAN></DIV> <DIV><SPAN class=781394212-21102004><FONT face=Arial color=#0000ff size=2>Rishi</FONT></SPAN></DIV> <DIV><SPAN class=781394212-21102004><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><BR></DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><FONT face=Arial color=#0000ff size=2></FONT> </BLOCKQUOTE></ZZZBODY></ZZZHTML></BODY> |
From: MUTNURU, R. K. (STSD) <mr...@hp...> - 2004-10-21 12:45:31
|
Hi, =20 The Net::SSH::Perl module has by default the Die mode and if any error occur while establishing SSH connection,it terminates the program and comes out of the program. According to my requirements, the program should not die even though the login fails. Can anybody suggest how to get rid of this issue. =20 Regards, Rishi =20 =20 |
From: nadim <na...@kh...> - 2004-10-21 05:48:33
|
Hi all,=20 I came across a problem today and I must say that I don't have the slightes= t=20 clue of why things don't work as they should. In the system I have, I need to let the user setup shells, I could let the= =20 user give data to setup shells but I'd rather get some live objects as it i= s=20 easier to not handle the diffrent types of shells I can use (local, SSH,=20 Telnet) and they might be other shell types only the user knows about. As=20 long as their shell implements the functions I need it can be whatever. Creating SSH session is no problem and it has worked properly so far (that = is=20 till last night). Creating SSH sessions through evaled text simply doesn't= =20 work as it should. I narrowed down the problem to these lines. The code is = =A0 for a minimal test to reproduce the problem not the original code. <test.pl> use Net::SSH::Perl ; my $shell =3D Net::SSH::Perl->new('192.168.1.99', debug =3D> 1); undef $shell ; open(FILE, '<', "evaled.pl" ) or die ; local $/ =3D undef ; my $file_body =3D <FILE> ; close(FILE) ; my $distributor =3D eval $file_body ; die $@ if $@ ; </test.pl> <evaled.pl> use Net::SSH::Perl ; my $shell =3D Net::SSH::Perl->new('192.168.1.99', debug =3D> 1); </evales.pl> The first SSH connection takes less than 0.2 seconds but the second one=20 (embedded in an eval) takes exactly 120 seconds!!! khemir.net: Reading configuration data /home/nadim/.ssh/config khemir.net: Reading configuration data /etc/ssh_config khemir.net: Connecting to localhost, port 22. khemir.net: Remote protocol version 1.99, remote software version=20 OpenSSH_3.6.1p2 khemir.net: Net::SSH::Perl Version 1.25, protocol version 1.5. khemir.net: No compat match: OpenSSH_3.6.1p2. khemir.net: Connection established. khemir.net: Reading configuration data /home/nadim/.ssh/config khemir.net: Reading configuration data /etc/ssh_config khemir.net: Connecting to localhost, port 22. khemir.net: Remote protocol version 1.99, remote software version=20 OpenSSH_3.6.1p2 khemir.net: Net::SSH::Perl Version 1.25, protocol version 1.5. khemir.net: No compat match: OpenSSH_3.6.1p2. khemir.net: Connection established. real 120.30 user 0.07 sys 0.00 Any idea? Cheers, Nadim. |
From: Rishi K. M <kau...@in...> - 2004-10-18 12:09:54
|
From: Jutu S. S. (Cognizant) <JSr...@ch...> - 2004-09-30 05:10:33
|
Hi, Anybody know how to use the fx2txt($status) and any sample program. (sample= example along with Net::SFTP->new , Net::SFTP->put connection) and how to read the sftp status and sftp code? regards Srinivas This e-mail and any files transmitted with it are for the sole use of the= intended recipient(s) and may contain confidential and privileged= information. If you are not the intended recipient, please contact the sender by reply= e-mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding,= printing or copying of this email or any action taken in reliance on this= e-mail is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com |
From: Ed D. <eda...@gm...> - 2004-09-24 20:06:39
|
I have the following code that I am running and if you look at the debug output you will see the last line says: "Channel open failure: 1: reason 1: bla bla". This otherwise looks like valid output for teh connection. Any idea what this means? Or how to get this to work? Ed ================================================ #!/usr/bin/perl use Net::SSH::Perl; $serverName = "x.x.x.201"; $user = "edavison"; $pass = "pass"; my %params = ( protocol => "2,1", debug => "true", interactive => "false", use_pty => 0 ); $ssh = Net::SSH::Perl->new($serverName, %params); $ssh->login($user, $pass); ($out,$err,$exit) = $ssh->cmd("show ip eth 3 1"); print "results:\n$out\n"; ================================================ +-(~/security/tp)> ./get_stats_ssh.pl cbacc-security3: Reading configuration data /home/bfdi533/.ssh/config cbacc-security3: Reading configuration data /etc/ssh_config cbacc-security3: Connecting to x.x.x.201, port 22. cbacc-security3: Remote protocol version 2.0, remote software version OpenSSH_2.0 cbacc-security3: Net::SSH::Perl Version 1.25, protocol version 2.0. cbacc-security3: Compat match: 'OpenSSH_2.0' matches pattern '^OpenSSH[-_]2\.[012]'. cbacc-security3: Connection established. cbacc-security3: Sent key-exchange init (KEXINIT), wait response. cbacc-security3: Algorithms, c->s: 3des-cbc hmac-sha1 none cbacc-security3: Algorithms, s->c: 3des-cbc hmac-sha1 none cbacc-security3: Entering Diffie-Hellman Group 1 key exchange. cbacc-security3: Sent DH public key, waiting for reply. cbacc-security3: Received host key, type 'ssh-dss'. cbacc-security3: Host 'x.x.x.201' is known and matches the host key. cbacc-security3: Computing shared secret key. cbacc-security3: Verifying server signature. cbacc-security3: Waiting for NEWKEYS message. cbacc-security3: Enabling incoming encryption/MAC/compression. cbacc-security3: Send NEWKEYS, enable outgoing encryption/MAC/compression. cbacc-security3: Sending request for user-authentication service. cbacc-security3: Service accepted: ssh-userauth. cbacc-security3: Trying empty user-authentication request. cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Publickey: testing agent key '/home/bfdi533/.ssh/id_rsa' cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Publickey: testing agent key '/home/bfdi533/.ssh/id_dsa' cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Trying pubkey authentication with key file '/home/bfdi533/.ssh/id_dsa' Enter passphrase for keyfile '/home/bfdi533/.ssh/id_dsa': cbacc-security3: Loading private key failed. cbacc-security3: Next method to try is password. cbacc-security3: Trying password authentication. cbacc-security3: Login completed, opening dummy shell channel. cbacc-security3: channel 0: new [client-session] cbacc-security3: Requesting channel_open for channel 0. cbacc-security3: channel 0: open confirm rwindow 0 rmax 16384 cbacc-security3: Got channel open confirmation, requesting shell. cbacc-security3: Requesting service shell on channel 0. cbacc-security3: channel 1: new [client-session] cbacc-security3: Requesting channel_open for channel 1. cbacc-security3: Entering interactive session. cbacc-security3: Channel open failure: 1: reason 1: bla bla results: +-(~/security/tp)> -- - Ed Davison |
From: Daniel S. C. <dsc...@te...> - 2004-09-23 03:54:50
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | Does anyone have any suggestions? Figured it out. I had to specify protocol v2.0 ... for some reason the module was interpreting the SSH version as protocol v1.0. When I specified: protocol => 2 it worked. :-p - -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? - -- PGP Key: http://machine.technocraft.com/~dsc/pgpkey.html [please encrypt emails to me when possible] - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUkkA4CrJ04+9SNURAoYeAJ9owRXDxnkvFSc9ZVV9eS3rv5vdSQCg812r N/GrhrOG+qDbVCSD9sF0ubY= =BqjB -----END PGP SIGNATURE----- |
From: Daniel S. C. <dsc...@te...> - 2004-09-23 03:14:27
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've been playing with the Net:SSH::Perl module and have had success with it working, except when I try to login to my Redhat Enterprise box using ssh-keys. I am able to login with keys using the ssh executable, but not with my little test script, and this appears to be only with this server. Perhaps there is some sort of incompatibility? Here is my script: - -- program begin -- #!/usr/local/bin/perl use strict; use Net::SSH::Perl; my $host = $ARGV[0] || 'server2'; print "Command: "; chomp(my $cmd=<STDIN>); $cmd ||= 'ls -alF'; my $ssh = Net::SSH::Perl->new( $host, ~ identity_files => [ '/home/user/.ssh/identity' ], ~ debug => 1); $ssh->login('user'); my ($stdout, $stderr, $exit) = $ssh->cmd($cmd); print $stdout; - -- program end -- Here is the debug output: server1: Reading configuration data /home/user/.ssh/config server1: Reading configuration data /etc/ssh_config server1: Connecting to server2, port 22. server1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2 server1: Net::SSH::Perl Version 1.25, protocol version 1.5. server1: No compat match: OpenSSH_3.6.1p2. server1: Connection established. server1: Waiting for server public key. server1: Received server public key (768 bits) and host key (1024 bits). server1: Host 'server2' is known and matches the host key. server1: Encryption type: DES3 server1: Sent encrypted session key. server1: Received encryption confirmation. server1: RSA authentication failed: Can't load public key. server1: Doing challenge response authentication. server1: No challenge presented. server1: Trying password authentication. server1: Will not query passphrase in batch mode. Permission denied at ./ssh.pl line 16 Does anyone have any suggestions? Thanks. - -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? - -- PGP Key: http://server1/~dsc/pgpkey.html [please encrypt emails to me when possible] - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUj9/4CrJ04+9SNURApePAJ9cS8VLLvtVgTeIbK8X2bEnL5hSxgCgrGay +x2ZHKgC2gFtlnc574+AYHA= =NvIy -----END PGP SIGNATURE----- |
From: Devon F. <dev...@ct...> - 2004-09-22 19:22:38
|
I'm new to perl. I have Active Perl 5.8 installed on a NT server. I also download Net-SSH-Perl-1.25 distribution. If I install Net-SSH-Perl-1.25 will it affect my current perl environment?=0D =0D Can you provide step by step instructions on how to install Net-SSH-Perl-1.25? =0D Thanks, Devon Forbes Dev...@ct... <html><head><Meta CTGDisctag > </head> <p></pre><i><font face=3D"Arial" size=3D"1">The information transmitted is= intended only for the person or entity to which it is addressed=0D and may contain confidential and/or privileged material. Any review,= retransmission, dissemination=0D or other use of, or taking of any action in reliance upon, this information= by persons or entities=0D other than the intended recipient is prohibited. If you received this in= error, please contact the=0D sender and delete the material from any computer.</font></i><pre></p> </html> |
From: Caron, C. <ch...@NR...> - 2004-09-21 16:56:15
|
Hi, I'm trying to use Net::SSH::Perl to connect to a remote server via a web page. The webserver is running as an unprivileged user (webserve). This code does work fine from the command line (as user webserve), but when I try the same code from the web interface, it prints everything up to the $ssh->cmd() line... Is this a security feature? Any solution for something like this to work? Thanks! ============================================= Code: --------------------------------------------- #!/usr/local/bin/perl use Net::SSH::Perl; use strict; my $server = 'server'; my $un = 'username'; my $pw = 'password'; print "Content-type: text/html\n\n"; print "<html><body>\n"; print "Testing Net::SSH::Perl\n"; my $ssh = Net::SSH::Perl->new("$server", port=>'22', protocol=>'1,2'); print "1...<br>"; $ssh->login($un, $pw); print "2...<br>"; my ($stdout, $stderr, $exit) = $ssh->cmd("ls"); print "3...<br>"; print "stdout is $stdout<br>\n"; print "stderr is $stderr<br>\n"; print "exit is $exit\n"; print "</body></html>"; ============================================= ============================================= Output from command line: --------------------------------------------- name# perl x.cgi Content-type: text/html <html><body> Testing Net::SSH::Perl 1...<br>2...<br>3...<br>stdout is CSSdomain_01.sql check_version_unix.cgi list manic public_html reindex scripts test <br> stderr is <br> exit is 0 </body></html> ============================================= ============================================= Output from web page (source): --------------------------------------------- <html><body> Testing Net::SSH::Perl 1...<br>2...<br> ============================================= - Christian Caron |
From: +ACI-Nguyen, D. M+ACI- <dav...@xo...> - 2004-09-16 15:40:39
|
I have below script written to check disk space. I got couple errors when running it from command line. Can someone look at the script and errors and let me know why complaining about uninitialized values I have in red texts? Thanks, David ================================================================ #!usrbinperl use warnings; use Net::SSH::Perl; %city = qw(hostname xxxxx); foreach $key (sort keys %city) { print "$key\n"; my $ssh = Net::SSH::Perl->new($key, port => 22, protocol => "2,1"); $ssh->login("userlogin", "$city{$key}"); @diskspace = $ssh->cmd("df -k"); for (@diskspace) { ($diskspace) = ((split)[4]); ($diskspace) =~ (s%g); if ($diskspace >= 80) { print "$key\n $diskspace\n"; } } $ssh->cmd('exit'); } ================================================================================ HOST==> PRES0_disk_SSH.pl Argument "capacity" isn't numeric in numeric ge (>=) at PRES0_disk_SSH.pl line 30. Use of uninitialized value in split at PRES0_disk_SSH.pl line 28. Use of uninitialized value in substitution (s) at PRES0_disk_SSH.pl line 29. Use of uninitialized value in numeric ge (>=) at PRES0_disk_SSH.pl line 30. Use of uninitialized value in substitution (s) at PRES0_disk_SSH.pl line 29. Use of uninitialized value in numeric ge (>=) at PRES0_disk_SSH.pl line 30. |
From: Chris L. <cp...@fa...> - 2004-09-16 14:43:57
|
Mark Fuller wrote: > The way to use "%args" is clear as *mud* and not > in the SFTP documentation. I was wrestling with the same lack of documentation today in a Net::SSH::Perl context. I came across your message which sorted me out fast. Thanks. I took your sample for Net::SFTP, and applied it thus: use Net::SSH::Perl; my $host = 'domain.com'; my $user = 'user'; my $pass = 'pass'; # not used during key-based auth my $debug = 0; my $port = 22; my $identity = '/path/to/.ssh/id_rsa'; my @ssh_args = ( debug => $debug, identity_files => ([$identity]), port => $ssh_port, ); my $command = 'uptime'; my $ssh = Net::SSH::Perl->new($host, @args); # key-based login: $ssh->login($user); # or password-based login: # $ssh->login($user, $pass); my ($stdout, $stderr, $exit) = $ssh->cmd($command); warn ("error performing command: $command ($stderr)") if ($exit); print $stdout; exit; Regards Chris Langlands -- Fast Media http://www.fastmedia.com/ |
From: Ed D. <eda...@gm...> - 2004-09-07 16:34:33
|
I have the following code that I am running and if you look at the debug output you will see the last line says: "Channel open failure: 1: reason 1: bla bla". This otherwise looks like valid output for teh connection. Any idea what this means? Or how to get this to work? Ed ================================================ #!/usr/bin/perl use Net::SSH::Perl; $serverName = "x.x.x.201"; $user = "edavison"; $pass = "pass"; my %params = ( protocol => "2,1", debug => "true", interactive => "false", use_pty => 0 ); $ssh = Net::SSH::Perl->new($serverName, %params); $ssh->login($user, $pass); ($out,$err,$exit) = $ssh->cmd("show ip eth 3 1"); print "results:\n$out\n"; ================================================ +-(~/security/tp)> ./get_stats_ssh.pl cbacc-security3: Reading configuration data /home/bfdi533/.ssh/config cbacc-security3: Reading configuration data /etc/ssh_config cbacc-security3: Connecting to x.x.x.201, port 22. cbacc-security3: Remote protocol version 2.0, remote software version OpenSSH_2.0 cbacc-security3: Net::SSH::Perl Version 1.25, protocol version 2.0. cbacc-security3: Compat match: 'OpenSSH_2.0' matches pattern '^OpenSSH[-_]2\.[012]'. cbacc-security3: Connection established. cbacc-security3: Sent key-exchange init (KEXINIT), wait response. cbacc-security3: Algorithms, c->s: 3des-cbc hmac-sha1 none cbacc-security3: Algorithms, s->c: 3des-cbc hmac-sha1 none cbacc-security3: Entering Diffie-Hellman Group 1 key exchange. cbacc-security3: Sent DH public key, waiting for reply. cbacc-security3: Received host key, type 'ssh-dss'. cbacc-security3: Host 'x.x.x.201' is known and matches the host key. cbacc-security3: Computing shared secret key. cbacc-security3: Verifying server signature. cbacc-security3: Waiting for NEWKEYS message. cbacc-security3: Enabling incoming encryption/MAC/compression. cbacc-security3: Send NEWKEYS, enable outgoing encryption/MAC/compression. cbacc-security3: Sending request for user-authentication service. cbacc-security3: Service accepted: ssh-userauth. cbacc-security3: Trying empty user-authentication request. cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Publickey: testing agent key '/home/bfdi533/.ssh/id_rsa' cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Publickey: testing agent key '/home/bfdi533/.ssh/id_dsa' cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Trying pubkey authentication with key file '/home/bfdi533/.ssh/id_dsa' Enter passphrase for keyfile '/home/bfdi533/.ssh/id_dsa': cbacc-security3: Loading private key failed. cbacc-security3: Next method to try is password. cbacc-security3: Trying password authentication. cbacc-security3: Login completed, opening dummy shell channel. cbacc-security3: channel 0: new [client-session] cbacc-security3: Requesting channel_open for channel 0. cbacc-security3: channel 0: open confirm rwindow 0 rmax 16384 cbacc-security3: Got channel open confirmation, requesting shell. cbacc-security3: Requesting service shell on channel 0. cbacc-security3: channel 1: new [client-session] cbacc-security3: Requesting channel_open for channel 1. cbacc-security3: Entering interactive session. cbacc-security3: Channel open failure: 1: reason 1: bla bla results: +-(~/security/tp)> |
From: Ed D. <eda...@gm...> - 2004-09-03 22:39:26
|
I have the following code that I am running and if you look at the debug output you will see the last line says: "Channel open failure: 1: reason 1: bla bla". This otherwise looks like valid output for teh connection. Any idea what this means? Or how to get this to work? Ed ================================================ #!/usr/bin/perl use Net::SSH::Perl; $serverName = "x.x.x.201"; $user = "edavison"; $pass = "pass"; my %params = ( protocol => "2,1", debug => "true", interactive => "false", use_pty => 0 ); $ssh = Net::SSH::Perl->new($serverName, %params); $ssh->login($user, $pass); ($out,$err,$exit) = $ssh->cmd("show ip eth 3 1"); print "results:\n$out\n"; ================================================ +-(~/security/tp)> ./get_stats_ssh.pl cbacc-security3: Reading configuration data /home/bfdi533/.ssh/config cbacc-security3: Reading configuration data /etc/ssh_config cbacc-security3: Connecting to x.x.x.201, port 22. cbacc-security3: Remote protocol version 2.0, remote software version OpenSSH_2.0 cbacc-security3: Net::SSH::Perl Version 1.25, protocol version 2.0. cbacc-security3: Compat match: 'OpenSSH_2.0' matches pattern '^OpenSSH[-_]2\.[012]'. cbacc-security3: Connection established. cbacc-security3: Sent key-exchange init (KEXINIT), wait response. cbacc-security3: Algorithms, c->s: 3des-cbc hmac-sha1 none cbacc-security3: Algorithms, s->c: 3des-cbc hmac-sha1 none cbacc-security3: Entering Diffie-Hellman Group 1 key exchange. cbacc-security3: Sent DH public key, waiting for reply. cbacc-security3: Received host key, type 'ssh-dss'. cbacc-security3: Host 'x.x.x.201' is known and matches the host key. cbacc-security3: Computing shared secret key. cbacc-security3: Verifying server signature. cbacc-security3: Waiting for NEWKEYS message. cbacc-security3: Enabling incoming encryption/MAC/compression. cbacc-security3: Send NEWKEYS, enable outgoing encryption/MAC/compression. cbacc-security3: Sending request for user-authentication service. cbacc-security3: Service accepted: ssh-userauth. cbacc-security3: Trying empty user-authentication request. cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Publickey: testing agent key '/home/bfdi533/.ssh/id_rsa' cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Publickey: testing agent key '/home/bfdi533/.ssh/id_dsa' cbacc-security3: Authentication methods that can continue: publickey,password. cbacc-security3: Next method to try is publickey. cbacc-security3: Trying pubkey authentication with key file '/home/bfdi533/.ssh/id_dsa' Enter passphrase for keyfile '/home/bfdi533/.ssh/id_dsa': cbacc-security3: Loading private key failed. cbacc-security3: Next method to try is password. cbacc-security3: Trying password authentication. cbacc-security3: Login completed, opening dummy shell channel. cbacc-security3: channel 0: new [client-session] cbacc-security3: Requesting channel_open for channel 0. cbacc-security3: channel 0: open confirm rwindow 0 rmax 16384 cbacc-security3: Got channel open confirmation, requesting shell. cbacc-security3: Requesting service shell on channel 0. cbacc-security3: channel 1: new [client-session] cbacc-security3: Requesting channel_open for channel 1. cbacc-security3: Entering interactive session. cbacc-security3: Channel open failure: 1: reason 1: bla bla results: +-(~/security/tp)> |
From: Terje B. <li...@po...> - 2004-09-01 00:51:03
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim Matthews <jim...@no...> wrote: >Are there any known issues using this module with large files? I need >to copy files that are between 10 and 50GB. I've tried running a test >sftp process several times and I've never been able to get more than >about 11GB across. And the speed is horrenduously slow. [=E2=80=A6] I've seen the same thing =E2=80=94 slow transfer speeds and frequent aborts= with large (>2GB?) files =E2=80=94 but due to time constraints ended up working around= it by scripting =C2=AB/usr/bin/sftp=C2=BB instead. I did not test it sufficiently extensively to put the blame on Net::SFTP; i= t may be related to other factors, but my distinct impression was that this w= as the case. - --=20 Editor's note: in the last update, we noted that Larry Wall would "vommen= t" on existing RFCs. Some took that to be a cross between "vomit" and "comment= =2E" We are unsure of whether it was a subconscious slip or a typographical erro= r. We are also unsure of whether or not to regret the error. -- use.perl.= org -----BEGIN PGP SIGNATURE----- Version: PGP SDK 3.0.3 iQA/AwUBQTUc7KPyPrIkdfXsEQLOPACeKECZCWF1QYZJ856mwPNsz1899ZwAoI4F UWv2cGw6yJnKnNzq0/ug6Ykn =3DlDxU -----END PGP SIGNATURE----- |
From: Jim M. <jim...@no...> - 2004-08-31 19:55:48
|
Are there any known issues using this module with large files? I need to copy files that are between 10 and 50GB. I've tried running a test sftp process several times and I've never been able to get more than about 11GB across. And the speed is horrenduously slow. It took about 2 hours to sftp that 11GB across (compared to a normal sftp process between the same machines which will transfer the same amount in about 10 minutes). Thanks. --------------------- Jim Matthews ISS Systems Administrator Duke University - Perkins Library Box 90196 Durham, NC 27708 Email: jim...@du... Voice: 919-660-5963 Fax: 919-684-6990 |
From: Roberto S. <rcs...@me...> - 2004-08-27 02:30:53
|
Hi: I'm sorry my English.. I probe Net::SSH::Perl and work find.. but i have a problem, when i don't connect with remote site y have the next message: Can't connect to 157.100.45.2, port 22: Connection refused at /usr/lib/perl5/site_perl/5.8.3/Net/SSH/Perl.pm line 206 Who I can capture this message and sending to one variable, and close the program. Thanks Regards, Roberto |
From: edward v. <eve...@ve...> - 2004-08-26 23:42:00
|
In reading the documentation on the "cmd" meathod I see: ------------ Runs the command $cmd on the remote server and returns the stdout, stderr, and exit status of that command. If $stdin is provided, it's supplied to the remote command $cmd on standard input. NOTE: the SSH-1 protocol does not support running multiple commands per connection, unless those commands are chained together so that the remote shell can evaluate them. Because of this, a new socket connection is created each time you call cmd, and disposed of afterwards. In other words, this code: my $ssh = Net::SSH::Perl->new("host1"); $ssh->login("user1", "pass1"); $ssh->cmd("foo"); $ssh->cmd("bar"); will actually connect to the sshd on the first invocation of cmd, then disconnect; then connect again on the second invocation of cmd, then disconnect again. Note that this does not apply to the SSH-2 protocol. SSH-2 fully supports running more than one command over the same connection. ------ My problem is that I am using SSH-2 and I still get a new connection for each command I execute. What do I have to do to issue multiple commands over the same connection. Example: ssh->cmd("pwd"); output is "/home/here". ssh->cmd("cd cur"); ssh->cmd("pwd"); output is "/home/here". ssh->cmd("cd cur\npwd"); output is "/home/here/cur". I have turned the debug option on and it confirms that I get a new connection each time I issue a cmd... Does anyone have a solution or suggestion on what I might try. ________________________________________________________________ Sent via the WebMail system at vegdahl.com |
From: Phillip K. <Phi...@no...> - 2004-08-26 18:24:58
|
Distinguished List: We are happy users of the module Net::SFTP. But if we could clear up a little infelicity, we would be even happier. What we are seeing is that in using Net::SFTP to get a remote directory, the entire perl session dies on a PARI error. The attached script reproduces the condition using Net::SFTP version 0.08. (And, we believe, very recent versions of all subsidiary modules. Full list on request.) Using a long directory tree on the remote end is an essential element of reproducing this condition. I was able to fit a full year's worth of filenames on "/tmp" but only 12 weeks on "/diskb2/data1/goes/sst/gridfiles". The error looks like this: PARI: *** the PARI stack overflows ! current stack size: 4.0 Mbytes [hint] you can increase GP stack with allocatemem() Any ideas? Many thanks, -PBK- Phillip Keegstra SPS Inc for NOAA Coastwatch WWB 601 5200 Auth Rd. Camp Springs, MD 20746 ++++++++++++++++++++++++++++++++++++++++++++++++++ I couldn't tell if the list accepts attachments, so here's the demo script appended directly. ++++++++++++++++++++++++++++++++++++++++++++++++++ #!/usr/local/bin/perl # Tickle a bug in Net::SFTP getting large directories. use Net::SFTP; my $ftpref = { '127.0.0.1' => "1\tXXXXXXXX\tZZZZZZZZZZ\t/diskb2/data1/goes/sst/gridfiles", }; { #Begin SCP of files foreach (keys %{$ftpref}) { # print $_, ' ', ${$ftpref}{$_}, "\n"; # Need to turn off utf8 flags for SFTP. my $ip = pack('C*', unpack('C*', $_)); my $ff = pack('C*', unpack('C*', ${$ftpref}{$_})); my($ll,$user,$pass,$path_there) = split(/\t/, $ff); # First element is 0 or 1 for inactive or active. next unless ($ll); my $xfertime = "999999999"; $on = "1"; my $ftp = Net::SFTP->new( ${ip}, user=>${user}, password=>${pass}, ); die 'Connect failed' unless defined($ftp); # Create an empty local file. { my $i = system("touch dum.$$"); die "touch returns $i creating dum.$$" if ($i); } # Make a years worth of files, 64 per day, on remote.... my $t = time(); for ($i=0; $i < 365; $i++) { my($s1,$n1,$h1,$d1,$m1,$y1,$w1,$j1,$dst) = gmtime($t - 86400*$i); for ($j=0; $j < 8; $j++) { foreach ('A','B','C','D','E','F','G','H') { my $nomen = sprintf("%4.4d_%3.3d_3%d%s.dat", $y1+1900, $j1+1, $j, $_); $ftp->put("dum.$$", "${path_there}/$nomen"); print("Pushed new $nomen\n"); } } if ($i%7 == 6) { # Once per week, try to get the directory. my(@list) = $ftp->ls("${path_there}"); print "\nWeek ", int($i/7), " size of list = ", scalar(@list), "\n\n"; } } } } ++++++++++++++++++++++++++++++++++++++++++++++++++ |
From: Ulf L. <ulf...@we...> - 2004-08-18 12:35:51
|
I am trying to do ha file transfer in Win32 environment using sftp and private/public keys. When using user and password authentication it works fine but if I use my private key it stops and print "Loading private key failed." If I use WinSCP or Putty and my private key it works fine. ---------code---------- my $sftp = Net::SFTP->new("my.host", ( user => "XXXXXX", password => "", debug => 1, ssh_args => ( ( [ identity_files => ([ "c:/test-RSA-Private.ppk" ]) ] ) ) ) ); --------------------------- fgth: Reading configuration data /.ssh/config fgth: Reading configuration data /etc/ssh_config fgth: Connecting to my.host, port 22. fgth: Socket created, turning on blocking... fgth: Remote protocol version 2.0, remote software version 3.2.3 F-Secure SSH Windows NT Server fgth: Net::SSH::Perl Version 1.25, protocol version 2.0. fgth: No compat match: 3.2.3 F-Secure SSH Windows NT Server fgth: Connection established. fgth: Sent key-exchange init (KEXINIT), wait response. fgth: Algorithms, c->s: 3des-cbc hmac-sha1 none fgth: Algorithms, s->c: 3des-cbc hmac-sha1 none fgth: Entering Diffie-Hellman Group 1 key exchange. fgth: Sent DH public key, waiting for reply. fgth: Received host key, type 'ssh-dss'. fgth: Host 'my.host' is known and matches the host key. fgth: Computing shared secret key. fgth: Verifying server signature. fgth: Waiting for NEWKEYS message. fgth: Enabling incoming encryption/MAC/compression. fgth: Send NEWKEYS, enable outgoing encryption/MAC/compression. fgth: Sending request for user-authentication service. fgth: Service accepted: ssh-userauth. fgth: Trying empty user-authentication request. fgth: Authentication methods that can continue: publickey. fgth: Next method to try is publickey. fgth: Trying pubkey authentication with key file 'c:/test-RSA-Private.ppk' fgth: Will not query passphrase for 'c:/test-RSA-Private.ppk' in batch mode. fgth: Loading private key failed. Permission denied at C:/Perl/lib/Net/SFTP.pm line 37 Any one having a clue regarding this problem. /Ulf -------------------------------------------------- Do not be struck by others. Do not strike others. The principle is the peace without incident. Mr. Chojun Miyagi -------------------------------------------------- |
From: Jim M. <jim...@no...> - 2004-08-13 21:19:48
|
Mark Thanks for the help. I was using the identity_files parameter, but my syntax was slightly off (I wasn't using brackets and parens around the name of the file). All fixed now. Sorry to stir up this trouble again. I saw your post previously and that's what lead me to figure out how to use the port parameter correctly (ssh doesn't live in /etc/services on my boxes). Thanks. --------------------- Jim Matthews ISS Systems Administrator Duke University - Perkins Library Box 90196 Durham, NC 27708 Email: jim...@du... Voice: 919-660-5963 Fax: 919-684-6990 "Mark Fuller" <mar...@ea...> 08/13/2004 02:52 PM Please respond to "Mark Fuller" <mar...@ea...> To <ssh...@li...>, "Jim Matthews" <jim...@no...> cc Subject Re: [Ssh-sftp-perl-users] Net::SFTP and publickey From: "Jim Matthews" <jim...@no...> >> Can't use string ("/export/home/jimmatt/.ssh/id_rsa") as an ARRAY ref > while "strict refs" in use at > /usr/local/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Auth/PublicKey.pm line > 51. You are trying to use what the Net::SFTP POD calls "ssh_args". (You're trying to pass args to SSH. Your example shows the port argument. I don't see where you pass "identity_files" argument, but that's what it's complaining about). The way to use "%args" is clear as *mud* and not in the SFTP documentation. This was discussed last April in archive article: http://sourceforge.net/mailarchive/message.php?msg_id=7695250 And prior to that in http://sourceforge.net/mailarchive/message.php?msg_id=7114677 To make it easier, I'll recreate it here. my $sftp = Net::SFTP->new("somehost.domain.domain", ( user => "someuser", ssh_args => ( ( [ port => (["1234"]), identity_files => ([ "/home/user/.ssh/ident_file" ]) ] ) ) ) ); Dave, here comes the rant which you should be expecting. You recall I discussed this with you almost a year ago. It took me 2 days of trial and error to unravel the undocumented syntax. I mentioned it again in January after you created the mailing list and asked everyone to re-input their requests and observations. Three months later (in April) another user tripped over this. Here we are again.... It would be so *easy* just to add an example near "ssh_args" in the POD. Nothing needs to be "fixed." Just the courtesy of saving people from a syntax they would never figure out. What's so hard about that? It's been requested three times over almost a year period. The last time I requested it, you complained that I hadn't opened a "RT" ticket (which you didn't mention the two previous times I requested it). I opened the RT ( http://sourceforge.net/mailarchive/forum.php?thread_id=4169065&forum_id=365 14) and still no update of the POD. You've asked for contribututions back to the project. I've tried. Given the incomprehendability of "ssh_args" this should have been a welcome solution. A mere documentation update. Instead it's gone nowhere for almost 12 months despite 3 requests. I'm sorry complaining. But, I'm still frustrated over those two days I spent last year figuring out that notation. The example I provided could save someone else the same frustration. For the fourth time: Is there any possibility this example can be placed in the documentation? Thank you, Mark ----- Original Message ----- From: "Jim Matthews" <jim...@no...> To: <ssh...@li...> Sent: Friday, August 13, 2004 10:59 AM Subject: [Ssh-sftp-perl-users] Net::SFTP and publickey > Hi > > I'm trying to setup a connection using publickeys, but I'm getting > nowhere. I have a publickey in /export/home/jimmatt/.ssh/id_rsa. Here's > the code: > > $sftp = Net::SFTP->new($server, ssh_args=>[port => "22"]); > $sftp->get($remote_file, $localfile); > > Nothing fancy. Here's the output I get: > > morpheus: Reading configuration data /export/home/jimmatt/.ssh/config > morpheus: Reading configuration data /etc/ssh_config > morpheus: Connecting to test.duke.edu, port 22. > morpheus: Remote protocol version 2.0, remote software version > OpenSSH_3.8p1 > morpheus: Net::SSH::Perl Version 1.25, protocol version 2.0. > morpheus: No compat match: OpenSSH_3.8p1. > morpheus: Connection established. > morpheus: Sent key-exchange init (KEXINIT), wait response. > morpheus: Algorithms, c->s: 3des-cbc hmac-sha1 none > morpheus: Algorithms, s->c: 3des-cbc hmac-sha1 none > morpheus: Entering Diffie-Hellman Group 1 key exchange. > morpheus: Sent DH public key, waiting for reply. > morpheus: Received host key, type 'ssh-dss'. > morpheus: Host 'test.duke.edu' is known and matches the host key. > morpheus: Computing shared secret key. > morpheus: Verifying server signature. > morpheus: Waiting for NEWKEYS message. > morpheus: Enabling incoming encryption/MAC/compression. > morpheus: Send NEWKEYS, enable outgoing encryption/MAC/compression. > morpheus: Sending request for user-authentication service. > morpheus: Service accepted: ssh-userauth. > morpheus: Trying empty user-authentication request. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > morpheus: Trying password authentication. > morpheus: Will not query passphrase in batch mode. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > morpheus: Trying password authentication. > morpheus: Will not query passphrase in batch mode. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > morpheus: Trying password authentication. > morpheus: Will not query passphrase in batch mode. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > Permission denied at /usr/local/lib/perl5/site_perl/5.8.5/Net/SFTP.pm line > 37 > > I tried to specify the the identity file by using: > > $sftp = Net::SFTP->new($server, debug=>true, ssh_args=>[identity_files => > "/export/home/jimmatt/.ssh/id_rsa", port => "22"]); > > but it didn't like that: > > morpheus: Service accepted: ssh-userauth. > morpheus: Trying empty user-authentication request. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > Can't use string ("/export/home/jimmatt/.ssh/id_rsa") as an ARRAY ref > while "strict refs" in use at > /usr/local/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Auth/PublicKey.pm line > 51. > > Any other way to try and specify this? > > Thanks. > --------------------- > Jim Matthews > ISS Systems Administrator > Duke University - Perkins Library > Box 90196 > Durham, NC 27708 > Email: jim...@du... > Voice: 919-660-5963 > Fax: 919-684-6990 > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |
From: Mark F. <mar...@ea...> - 2004-08-13 18:52:32
|
From: "Jim Matthews" <jim...@no...> >> Can't use string ("/export/home/jimmatt/.ssh/id_rsa") as an ARRAY ref > while "strict refs" in use at > /usr/local/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Auth/PublicKey.pm line > 51. You are trying to use what the Net::SFTP POD calls "ssh_args". (You're trying to pass args to SSH. Your example shows the port argument. I don't see where you pass "identity_files" argument, but that's what it's complaining about). The way to use "%args" is clear as *mud* and not in the SFTP documentation. This was discussed last April in archive article: http://sourceforge.net/mailarchive/message.php?msg_id=7695250 And prior to that in http://sourceforge.net/mailarchive/message.php?msg_id=7114677 To make it easier, I'll recreate it here. my $sftp = Net::SFTP->new("somehost.domain.domain", ( user => "someuser", ssh_args => ( ( [ port => (["1234"]), identity_files => ([ "/home/user/.ssh/ident_file" ]) ] ) ) ) ); Dave, here comes the rant which you should be expecting. You recall I discussed this with you almost a year ago. It took me 2 days of trial and error to unravel the undocumented syntax. I mentioned it again in January after you created the mailing list and asked everyone to re-input their requests and observations. Three months later (in April) another user tripped over this. Here we are again.... It would be so *easy* just to add an example near "ssh_args" in the POD. Nothing needs to be "fixed." Just the courtesy of saving people from a syntax they would never figure out. What's so hard about that? It's been requested three times over almost a year period. The last time I requested it, you complained that I hadn't opened a "RT" ticket (which you didn't mention the two previous times I requested it). I opened the RT (http://sourceforge.net/mailarchive/forum.php?thread_id=4169065&forum_id=365 14) and still no update of the POD. You've asked for contribututions back to the project. I've tried. Given the incomprehendability of "ssh_args" this should have been a welcome solution. A mere documentation update. Instead it's gone nowhere for almost 12 months despite 3 requests. I'm sorry complaining. But, I'm still frustrated over those two days I spent last year figuring out that notation. The example I provided could save someone else the same frustration. For the fourth time: Is there any possibility this example can be placed in the documentation? Thank you, Mark ----- Original Message ----- From: "Jim Matthews" <jim...@no...> To: <ssh...@li...> Sent: Friday, August 13, 2004 10:59 AM Subject: [Ssh-sftp-perl-users] Net::SFTP and publickey > Hi > > I'm trying to setup a connection using publickeys, but I'm getting > nowhere. I have a publickey in /export/home/jimmatt/.ssh/id_rsa. Here's > the code: > > $sftp = Net::SFTP->new($server, ssh_args=>[port => "22"]); > $sftp->get($remote_file, $localfile); > > Nothing fancy. Here's the output I get: > > morpheus: Reading configuration data /export/home/jimmatt/.ssh/config > morpheus: Reading configuration data /etc/ssh_config > morpheus: Connecting to test.duke.edu, port 22. > morpheus: Remote protocol version 2.0, remote software version > OpenSSH_3.8p1 > morpheus: Net::SSH::Perl Version 1.25, protocol version 2.0. > morpheus: No compat match: OpenSSH_3.8p1. > morpheus: Connection established. > morpheus: Sent key-exchange init (KEXINIT), wait response. > morpheus: Algorithms, c->s: 3des-cbc hmac-sha1 none > morpheus: Algorithms, s->c: 3des-cbc hmac-sha1 none > morpheus: Entering Diffie-Hellman Group 1 key exchange. > morpheus: Sent DH public key, waiting for reply. > morpheus: Received host key, type 'ssh-dss'. > morpheus: Host 'test.duke.edu' is known and matches the host key. > morpheus: Computing shared secret key. > morpheus: Verifying server signature. > morpheus: Waiting for NEWKEYS message. > morpheus: Enabling incoming encryption/MAC/compression. > morpheus: Send NEWKEYS, enable outgoing encryption/MAC/compression. > morpheus: Sending request for user-authentication service. > morpheus: Service accepted: ssh-userauth. > morpheus: Trying empty user-authentication request. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > morpheus: Trying password authentication. > morpheus: Will not query passphrase in batch mode. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > morpheus: Trying password authentication. > morpheus: Will not query passphrase in batch mode. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > morpheus: Trying password authentication. > morpheus: Will not query passphrase in batch mode. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > morpheus: Next method to try is password. > Permission denied at /usr/local/lib/perl5/site_perl/5.8.5/Net/SFTP.pm line > 37 > > I tried to specify the the identity file by using: > > $sftp = Net::SFTP->new($server, debug=>true, ssh_args=>[identity_files => > "/export/home/jimmatt/.ssh/id_rsa", port => "22"]); > > but it didn't like that: > > morpheus: Service accepted: ssh-userauth. > morpheus: Trying empty user-authentication request. > morpheus: Authentication methods that can continue: > publickey,password,keyboard-interactive. > morpheus: Next method to try is publickey. > Can't use string ("/export/home/jimmatt/.ssh/id_rsa") as an ARRAY ref > while "strict refs" in use at > /usr/local/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Auth/PublicKey.pm line > 51. > > Any other way to try and specify this? > > Thanks. > --------------------- > Jim Matthews > ISS Systems Administrator > Duke University - Perkins Library > Box 90196 > Durham, NC 27708 > Email: jim...@du... > Voice: 919-660-5963 > Fax: 919-684-6990 > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |
From: Jim M. <jim...@no...> - 2004-08-13 18:00:06
|
Hi I'm trying to setup a connection using publickeys, but I'm getting nowhere. I have a publickey in /export/home/jimmatt/.ssh/id_rsa. Here's the code: $sftp = Net::SFTP->new($server, ssh_args=>[port => "22"]); $sftp->get($remote_file, $localfile); Nothing fancy. Here's the output I get: morpheus: Reading configuration data /export/home/jimmatt/.ssh/config morpheus: Reading configuration data /etc/ssh_config morpheus: Connecting to test.duke.edu, port 22. morpheus: Remote protocol version 2.0, remote software version OpenSSH_3.8p1 morpheus: Net::SSH::Perl Version 1.25, protocol version 2.0. morpheus: No compat match: OpenSSH_3.8p1. morpheus: Connection established. morpheus: Sent key-exchange init (KEXINIT), wait response. morpheus: Algorithms, c->s: 3des-cbc hmac-sha1 none morpheus: Algorithms, s->c: 3des-cbc hmac-sha1 none morpheus: Entering Diffie-Hellman Group 1 key exchange. morpheus: Sent DH public key, waiting for reply. morpheus: Received host key, type 'ssh-dss'. morpheus: Host 'test.duke.edu' is known and matches the host key. morpheus: Computing shared secret key. morpheus: Verifying server signature. morpheus: Waiting for NEWKEYS message. morpheus: Enabling incoming encryption/MAC/compression. morpheus: Send NEWKEYS, enable outgoing encryption/MAC/compression. morpheus: Sending request for user-authentication service. morpheus: Service accepted: ssh-userauth. morpheus: Trying empty user-authentication request. morpheus: Authentication methods that can continue: publickey,password,keyboard-interactive. morpheus: Next method to try is publickey. morpheus: Next method to try is password. morpheus: Trying password authentication. morpheus: Will not query passphrase in batch mode. morpheus: Authentication methods that can continue: publickey,password,keyboard-interactive. morpheus: Next method to try is publickey. morpheus: Next method to try is password. morpheus: Trying password authentication. morpheus: Will not query passphrase in batch mode. morpheus: Authentication methods that can continue: publickey,password,keyboard-interactive. morpheus: Next method to try is publickey. morpheus: Next method to try is password. morpheus: Trying password authentication. morpheus: Will not query passphrase in batch mode. morpheus: Authentication methods that can continue: publickey,password,keyboard-interactive. morpheus: Next method to try is publickey. morpheus: Next method to try is password. Permission denied at /usr/local/lib/perl5/site_perl/5.8.5/Net/SFTP.pm line 37 I tried to specify the the identity file by using: $sftp = Net::SFTP->new($server, debug=>true, ssh_args=>[identity_files => "/export/home/jimmatt/.ssh/id_rsa", port => "22"]); but it didn't like that: morpheus: Service accepted: ssh-userauth. morpheus: Trying empty user-authentication request. morpheus: Authentication methods that can continue: publickey,password,keyboard-interactive. morpheus: Next method to try is publickey. Can't use string ("/export/home/jimmatt/.ssh/id_rsa") as an ARRAY ref while "strict refs" in use at /usr/local/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Auth/PublicKey.pm line 51. Any other way to try and specify this? Thanks. --------------------- Jim Matthews ISS Systems Administrator Duke University - Perkins Library Box 90196 Durham, NC 27708 Email: jim...@du... Voice: 919-660-5963 Fax: 919-684-6990 |
From: Shirley, D. <Dav...@te...> - 2004-08-09 00:47:31
|
W3Jvb3RAZmVkb3JhIH5dJCBzc2ggLXYgLXYgLXYgbmV0c2NyZWVuQDE3Mi4xNi4wLjEgZ2V0IGNv bmZpZw0KT3BlblNTSF8zLjhwMSwgU1NIIHByb3RvY29scyAxLjUvMi4wLCBPcGVuU1NMIDAuOS43 YSBGZWIgMTkgMjAwMw0KZGVidWcxOiBSZWFkaW5nIGNvbmZpZ3VyYXRpb24gZGF0YSAvZXRjL3Nz aC9zc2hfY29uZmlnDQpkZWJ1ZzI6IHNzaF9jb25uZWN0Oi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