1 |
Hi, Joshua, |
2 |
|
3 |
On Sun, Dec 06, 2009 at 01:56:06PM -0500, Joshua Murphy wrote: |
4 |
> On Sun, Dec 6, 2009 at 11:59 AM, Florian Philipp |
5 |
> <lists@f_philipp.fastmail.net> wrote: |
6 |
> > Alan Mackenzie schrieb: |
7 |
|
8 |
> >> I'm trying to get sshd working on an embryonic Gentoo installation on my |
9 |
> >> laptop. The reason is that I want to ssh from my nice comfy desktop |
10 |
> >> system into this laptop to do the rest of the installation stuff. |
11 |
|
12 |
> >> The installation kernel with which I'm having problems is: |
13 |
> >> Linux livecd 2.6.30-gentoo-r8 #1 SMP Tue Nov 3 11:40:51 UTC 2009. |
14 |
|
15 |
> >> Having started sshd on my laptop, when I do |
16 |
|
17 |
> >> ssh -lroot 192.168.2.101 |
18 |
|
19 |
> >> from my desktop, I get prompted for my ssh key's pass phrase, which I |
20 |
> >> enter. Thereafter, nothing happens, and it continues to happen for a |
21 |
> >> long, long time. |
22 |
|
23 |
> > [...] |
24 |
|
25 |
> >> Clearly openpty (a C function) is failing to find some file. Don't you |
26 |
> >> just love error messages like "No such file or directory" which forget |
27 |
> >> to identify the filename? I'm guessing that the file it can't find is |
28 |
> >> the device file for the new pty. |
29 |
|
30 |
> >> Is there anything I can do to get sshd working from this kernel (and if |
31 |
> >> so, what?), or is there something fundamentally wrong with the kernel |
32 |
> >> configuration? |
33 |
|
34 |
|
35 |
> > Where did you start sshd, in the chrooted environment or on the live cd |
36 |
> > itself? |
37 |
|
38 |
> My first thought as well... I'd guess, just at a glance, that sshd was |
39 |
> started in the chroot, and that /mnt/gentoo/dev/ is bind mounted |
40 |
> properly, but /mnt/gentoo/dev/pts/ isn't. |
41 |
|
42 |
It was, and it is, but it isn't, just as you suggest. I've just read up |
43 |
on exactly what |
44 |
|
45 |
mount -o bind /dev /mnt/gentoo/dev |
46 |
|
47 |
means, and I can see I really want "-o rbind" (or --rbind) instead. |
48 |
|
49 |
Thanks! It'll surely work, now |
50 |
|
51 |
> Joshua M. Murphy |
52 |
|
53 |
-- |
54 |
Alan Mackenzie (Nuremberg, Germany). |