hildwin
Posts: 5
Joined: Fri Jul 12, 2013 7:39 pm
Location: Berlin

openssh-Server

Wed Aug 14, 2013 7:34 pm

Hi folks,

I have two Raspberry Pis which should copy via cronjob, shell script and scp several files from time to time.
I set up ssh-keys via ssh-keygen and copied the public keys with ssh-copiy-id to the remote Pi and vice versa.

If I understand the concept of ssh right, I now must be able to login in via ssh without any password to the other Pi. But that doesn't happen. Both Pis ask for a password. scp works, but also only when I type the password.

The sshd-config file is correct, as far I can see.

Here is the output of the ssh command:

Code: Select all

OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.178.215 [192.168.178.215] port 22.
debug1: Connection established.
debug1: identity file /home/pi/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/pi/.ssh/id_rsa-cert type -1
debug1: identity file /home/pi/.ssh/id_dsa type -1
debug1: identity file /home/pi/.ssh/id_dsa-cert type -1
debug1: identity file /home/pi/.ssh/id_ecdsa type -1
debug1: identity file /home/pi/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-4
debug1: match: OpenSSH_6.0p1 Debian-4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 25:a1:4a:48:0f:83:a0:21:3b:d9:99:13:6f:91:41:94
debug1: Host '192.168.178.215' is known and matches the ECDSA host key.
debug1: Found key in /home/pi/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/pi/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/pi/.ssh/id_dsa
debug1: Trying private key: /home/pi/.ssh/id_ecdsa
debug1: Next authentication method: password
[email protected]'s password:
Any ideas? That would be so grateful!

rob311
Posts: 1
Joined: Wed Aug 14, 2013 9:55 pm

Re: openssh-Server

Wed Aug 14, 2013 9:57 pm

did you do this in the sshd_config
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no

Return to “Troubleshooting”