Hi, have a big problem with connecting to SSHd. I have SSHd server on my LocalHost(127.0.0.1).
Loopback device forks fine on my BOX. But i can not connect to server with this simple perl script:
use Net::SSH::Perl;
my $ssh = Net::SSH::Perl->new("127.0.0.1", debug => 1);
$ssh->login("titan", "my-scret-password");# I have got a valid password ofcourse :P
my($stdout, $stderr, $exit) = $ssh->cmd("ps aufx"); #For example :P
And this is my OUTPUT:
titan@tbook ~/haxXxing $ sudo perl ssh.pl
tbook: Reading configuration data /home/titan/.ssh/config
tbook: Reading configuration data /etc/ssh_config
tbook: Allocated local port 1022.
tbook: Connecting to 127.0.0.1, port 22.
tbook: Remote protocol version 2.0, remote software version OpenSSH_4.2
tbook: Net::SSH::Perl Version 1.29, protocol version 2.0.
tbook: No compat match: OpenSSH_4.2.
tbook: Connection established.
tbook: Sent key-exchange init (KEXINIT), wait response.
tbook: Algorithms, c->s: 3des-cbc hmac-sha1 none
tbook: Algorithms, s->c: 3des-cbc hmac-sha1 none
tbook: Entering Diffie-Hellman Group 1 key exchange.
tbook: Sent DH public key, waiting for reply.
tbook: Received host key, type 'ssh-dss'.
tbook: Host '127.0.0.1' is known and matches the host key.
tbook: Computing shared secret key.
tbook: Verifying server signature.
tbook: Waiting for NEWKEYS message.
tbook: Enabling incoming encryption/MAC/compression.
tbook: Send NEWKEYS, enable outgoing encryption/MAC/compression.
tbook: Sending request for user-authentication service.
tbook: Service accepted: ssh-userauth.
tbook: Trying empty user-authentication request.
tbook: Authentication methods that can continue: publickey,keyboard-interactive.
tbook: Next method to try is publickey.
Permission denied at ssh.pl line 3
titan@tbook ~/haxXxing $
I'm using a 2 SSH protocol only. Can SB help me?