1 |
On Sunday 30 July 2006 03:56, John Blinka wrote: |
2 |
> Hi, folks, |
3 |
> |
4 |
> I'd like to get host based ssh authentication working within |
5 |
> all the gentoo boxes on my home network. I've had no |
6 |
> success yet - I hope someone can enlighten me! |
7 |
> |
8 |
> What I've done so far on the server side is: |
9 |
> |
10 |
> set HostbasedAuthentication yes in sshd_config |
11 |
> set HostbasedAuthentication yes in ssh_config |
12 |
> added /etc/ssh/shosts.equiv containing names of client |
13 |
> boxes added /etc/ssh/ssh_known_hosts containing public host keys |
14 |
> of client boxes |
15 |
> |
16 |
> Client boxes are configured similarly. |
17 |
> |
18 |
> When I try to ssh from one box to another, I always get a request |
19 |
> for a password, which is what I'm trying to avoid. |
20 |
> |
21 |
> Below is an excerpt from an attempt to ssh from one box to |
22 |
> another while requesting the maximum amount of debugging info. |
23 |
> It looks like ssh is trying to use host based authentication, but |
24 |
> for some reason it fails. I'd appreciate any ideas about what |
25 |
> might be going wrong. |
26 |
> |
27 |
> John Blinka |
28 |
> |
29 |
> |
30 |
> |
31 |
> |
32 |
> debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts |
33 |
> debug3: check_host_in_hostfile: match line 5 |
34 |
> debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts |
35 |
> debug3: check_host_in_hostfile: match line 5 |
36 |
> debug1: Host 'tobey' is known and matches the RSA host key. |
37 |
> debug1: Found key in /root/.ssh/known_hosts:5 |
38 |
> debug2: bits set: 469/1024 |
39 |
> debug1: ssh_rsa_verify: signature correct |
40 |
> debug2: kex_derive_keys |
41 |
> debug2: set_newkeys: mode 1 |
42 |
> debug1: SSH2_MSG_NEWKEYS sent |
43 |
> debug1: expecting SSH2_MSG_NEWKEYS |
44 |
> debug2: set_newkeys: mode 0 |
45 |
> debug1: SSH2_MSG_NEWKEYS received |
46 |
> debug1: SSH2_MSG_SERVICE_REQUEST sent |
47 |
> debug2: service_accept: ssh-userauth |
48 |
> debug1: SSH2_MSG_SERVICE_ACCEPT received |
49 |
> debug2: key: /root/.ssh/identity ((nil)) |
50 |
> debug2: key: /root/.ssh/id_rsa (0x8095528) |
51 |
> debug2: key: /root/.ssh/id_dsa (0x80964c0) |
52 |
> debug1: Authentications that can continue: |
53 |
> publickey,keyboard-interactive,hostbased |
54 |
> debug3: start over, passed a different list |
55 |
> publickey,keyboard-interactive,hostbased |
56 |
> debug3: preferred |
57 |
> hostbased,publickey,keyboard-interactive,password debug3: |
58 |
> authmethod_lookup hostbased |
59 |
> debug3: remaining preferred: |
60 |
> publickey,keyboard-interactive,password debug3: |
61 |
> authmethod_is_enabled hostbased |
62 |
> debug1: Next authentication method: hostbased |
63 |
> debug2: userauth_hostbased: chost lotus.bluebar.org. |
64 |
> debug2: we sent a hostbased packet, wait for reply |
65 |
> debug1: Authentications that can continue: |
66 |
> publickey,keyboard-interactive,hostbased |
67 |
> debug2: userauth_hostbased: chost lotus.bluebar.org. |
68 |
> debug2: we sent a hostbased packet, wait for reply |
69 |
> debug1: Authentications that can continue: |
70 |
> publickey,keyboard-interactive,hostbased |
71 |
> debug1: No more client hostkeys for hostbased authentication. |
72 |
> debug2: we did not send a packet, disable method |
73 |
|
74 |
http://www-106.ibm.com/developerworks/linux/library/l-keyc.html |
75 |
http://pigtail.net/LRP/printsrv/keygen.html |
76 |
http://bumblebee.lcs.mit.edu/ssh2/ |
77 |
|
78 |
-- |
79 |
Peter |
80 |
======================================================================== |
81 |
Gentoo Linux: Portage 2.1-r1. kernel-2.6.17-gentoo-r3-x86. |
82 |
2006 i686 AMD Athlon(tm) 64. gcc(GCC): 3.4.4. |
83 |
KDE: 3.5.3. Qt: 3.3.6. |
84 |
======================================================================== |
85 |
-- |
86 |
gentoo-user@g.o mailing list |