Hi,
ich kriege PK Auth nicht ans laufen. Ziel ist von 10.0.0.251 auf 254 eine PK Auth einzurichten.
Hat jemand ne Idee? Hab bisher noch nie Probleme damit gehabt. Deswegen etwas ratlos grad...
cu
serow
ich kriege PK Auth nicht ans laufen. Ziel ist von 10.0.0.251 auf 254 eine PK Auth einzurichten.
Code:
mathias@wizard:~$ ls -al | grep ssh
drwx------ 2 mathias mathias 4096 2009-04-11 12:17 .ssh
mathias@wizard:~$ ls -al .ssh/
total 8
drwx------ 2 mathias mathias 4096 2009-04-11 12:17 .
drwxr-xr-x 36 mathias mathias 4096 2009-04-11 11:37 ..
mathias@wizard:~$
Code:
mathias@wizard:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/mathias/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/mathias/.ssh/id_rsa.
Your public key has been saved in /home/mathias/.ssh/id_rsa.pub.
The key fingerprint is:
4b:b0:24:bc:5c:66:2f:95:4e:df:6a:55:61:e8:b6:04 mathias@wizard
The key's randomart image is:
+--[ RSA 2048]----+
| .o |
| . .E .. . |
| o * + o . |
| . B B . .+. |
| o o S .oo. |
| o . o. |
| . o |
| . |
| |
+-----------------+
mathias@wizard:~$
Code:
mathias@wizard:~$ ls -al .ssh/
total 16
drwx------ 2 mathias mathias 4096 2009-04-11 12:18 .
drwxr-xr-x 36 mathias mathias 4096 2009-04-11 11:37 ..
-rw------- 1 mathias mathias 1743 2009-04-11 12:18 id_rsa
-rw-r--r-- 1 mathias mathias 396 2009-04-11 12:18 id_rsa.pub
mathias@wizard:~$
Code:
mathias@wizard:~$ ssh-copy-id -i .ssh/id_rsa.pub mathias@10.0.0.254
The authenticity of host '10.0.0.254 (10.0.0.254)' can't be established.
RSA key fingerprint is fd:d3:79:c0:ed:8b:0d:47:d4:6b:c1:b9:c1:4c:82:84.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.0.254' (RSA) to the list of known hosts.
mathias@10.0.0.254's password:
Now try logging into the machine, with "ssh 'mathias@10.0.0.254'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
mathias@wizard:~$
Code:
mathias@apprentice:~/.ssh$ cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxIhSXvhcTBEQ2N7/HEDWRHP32/L247Ga/CxU7ZDKaT/u1A8UC5z0kOk+lQjkfJncmUswC2DFvGo/lCpE50OxxfTKdmxEEl8VPR5TYoQNPRbC2x2WHUSOco7Y2RHl8j1Yv+C6D1l9YV8ZaAOzX8TOIvGTLUtSS9PZHfO51khA9b6mrBxHzFPb+cBuMZyBnhoi6PZ6uoa2LdS1YD0i7nwY7NLuFZKzyJGngjut8aRMjfdSmHhDnQpj5nFBa10emPGH0OxVfVU/nnEbvJhxc/uz46P1HDvAor/jDaNBRY5VKEUdC1RdnLfB7CxqZ1dfSsqBOqmKgRnct6dEQwJidOPW7w== mathias@wizard
mathias@apprentice:~/.ssh$
Code:
mathias@wizard:~$ ssh -v mathias@10.0.0.254
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.0.0.254 [10.0.0.254] port 22.
debug1: Connection established.
debug1: identity file /home/mathias/.ssh/identity type -1
debug1: identity file /home/mathias/.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/mathias/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '10.0.0.254' is known and matches the RSA host key.
debug1: Found key in /home/mathias/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
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 public key: /home/mathias/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/mathias/.ssh/identity
debug1: Trying private key: /home/mathias/.ssh/id_dsa
debug1: Next authentication method: password
mathias@10.0.0.254's password:
Hat jemand ne Idee? Hab bisher noch nie Probleme damit gehabt. Deswegen etwas ratlos grad...
cu
serow