[LUG.ro] ssh automatico con argumentos

Angel Aranciba lugro@lugro.org.ar
Thu, 6 Apr 2006 20:47:11 +0000


Bueno, sigo con algunos problemas qeu apso a comentarles:

DEspuesde un rato largo qeudo l modulo andando (eso aprece al menos),
pero no logro la forma de poder conectarme por emdio de el. Lo que
hago es lo siguiente:

print ("Conectando a: $host");
my $ssh_2=Net::SSH::Perl->new($host,debug=>"true", protocol=>'2,1');

y esto es lo qeu me tira:
#####

Conectando a: 192.168.1.1
Elentari: Reading configuration data /root/.ssh/config
Elentari: Reading configuration data /etc/ssh_config
Elentari: Allocated local port 1023.
Elentari: Connecting to 192.168.1.1, port 22.
Elentari: Remote version string: SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4

Elentari: Remote protocol version 2.0, remote software version
OpenSSH_3.8.1p1 Debian-8.sarge.4
Elentari: Net::SSH::Perl Version 1.30, protocol version 2.0.
Elentari: No compat match: OpenSSH_3.8.1p1 Debian-8.sarge.4.
Elentari: Connection established.
Elentari: Sent key-exchange init (KEXINIT), wait response.
Elentari: Algorithms, c->s: 3des-cbc hmac-sha1 none
Elentari: Algorithms, s->c: 3des-cbc hmac-sha1 none
Elentari: Entering Diffie-Hellman Group 1 key exchange.
Elentari: Sent DH public key, waiting for reply.
Elentari: Received host key, type 'ssh-dss'.
Elentari: Host '192.168.1.1' is known and matches the host key.
Elentari: Computing shared secret key.
Elentari: Verifying server signature.
Elentari: Waiting for NEWKEYS message.
Elentari: Enabling incoming encryption/MAC/compression.
Elentari: Send NEWKEYS, enable outgoing encryption/MAC/compression.
Elentari: Sending request for user-authentication service.
Elentari: Service accepted: ssh-userauth.
Elentari: Trying empty user-authentication request.
Elentari: Authentication methods that can continue:
publickey,keyboard-interactive.
Elentari: Next method to try is publickey.
Permission denied at ./new-ip-vpn.pl line 69
###############

en la linea 69 esta el comando de arriba (el que abre la conexion). No
entiendo lo que pasa, si ejecuto ssh desde consola entra.

Alguna idea?

GRacias


--
-----
Angel Arancibia

GNU/Linux User Registered #358969
http://counter.li.org/

ICQ: 327093745
MSN: angel.arancibia@gmail.com
-------------------------------

"Computer science is no more about computers than astronomy is about
telescopes." - Edsger W. Dijkstra

"There are only 10 types of people in the world: Those who understand
binary, and those who don't"