Thread Keine SSH Verbindung (16 answers)
Opened by mollilinux at 2010-02-22 16:55

mollilinux
 2010-02-22 20:11
#133478 #133478
User since
2010-02-16
19 Artikel
BenutzerIn
[default_avatar]
Linuxer
Ich habe mir mal ein Testskript zusammengestellt und kann aktuell Dein Problem nicht nachvollziehen.
Bei Verwendung korrekter User-Informationen funktioniert das Skript wie gewünscht.


Was für eine Distribution verwendest du?

Bei mir will auch dein testscript nicht funktionieren, ja die USER-Informationen sind bei mir korrekt.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
molli@penguin ~/projects/mprm $ perl error-script.pl
penguin.local: Reading configuration data /home/molli/.ssh/config
penguin.local: Reading configuration data /etc/ssh_config
penguin.local: Connecting to 192.168.1.101, port 22.
penguin.local: Remote protocol version 2.0, remote software version OpenSSH_5.2
penguin.local: Net::SSH::Perl Version 1.34, protocol version 2.0.
.enguin.local: No compat match: OpenSSH_5.2
penguin.local: Connection established.
Kontrolle: Net::SSH::Perl::SSH2
penguin.local: Sent key-exchange init (KEXINIT), wait response.
penguin.local: Algorithms, c->s: 3des-cbc hmac-sha1 none
penguin.local: Algorithms, s->c: 3des-cbc hmac-sha1 none
penguin.local: Entering Diffie-Hellman Group 1 key exchange.
penguin.local: Sent DH public key, waiting for reply.
penguin.local: Received host key, type 'ssh-dss'.
penguin.local: Host '192.168.1.101' is known and matches the host key.
penguin.local: Computing shared secret key.
penguin.local: Verifying server signature.
penguin.local: Waiting for NEWKEYS message.
penguin.local: Send NEWKEYS.
penguin.local: Enabling encryption/MAC/compression.
penguin.local: Sending request for user-authentication service.
penguin.local: Service accepted: ssh-userauth.
penguin.local: Trying empty user-authentication request.
penguin.local: Authentication methods that can continue: publickey,keyboard-interactive.
penguin.local: Next method to try is publickey.
Permission denied at error-script.pl line 21


Ich habe aber bei deinem Script die debug mode wieder eingeschaltet (1).

EDIT:
Bin noch auf einen Artikel gestossen.

Schau mal:

http://www.perlmonks.org/?node_id=590548

Was sagst du dazu?

Quote
The documentation of Net::SSH::Perl is misleading on this behalf, as the method

$ssh->login($user, $pass);
[download]

will never work - by design!

Last edited: 2010-02-22 20:17:37 +0100 (CET)

View full thread Keine SSH Verbindung