
10-22-2008, 11:13 AM
|
| Junior Member | | Join Date: Sep 2009
Posts: 0
| |
Re: SSH client insists on /dev/tty >>>>> "SM" == Stephan Mann writes:
SM> Hi, I'm running a RHEL 5.2 on an IBM System z Mainframe. From this
SM> system, I created a RAM disk with some necessary binaries and my
SM> own init script. I now can boot into this RAM disk using the
SM> distribution kernel [1].
SM> There are two ways to connect to this system running with my RAM
SM> disk: Directly with a x3270 terminal [2] or via SSH to the SSH
SM> server, running within this RAM disk. The problem is that SSH [3]
SM> is not working when I use the x3270 client.
SM> If I try to SSH to another machine from within the RAM disk, SSH
SM> will say:
SM> debug1: read_passphrase: can't open /dev/tty: No such device or
SM> address Host key verification failed.
SM> Obviously, /dev/tty *does* exist and has the proper permissions:
SM> sh-3.2# ls -l /dev/tty crw-rw-rw- 1 sysload 0 5, 0 Oct 21 15:01
SM> /dev/tty
The *file* exists, but is it mapped to the right device? I think you
don't know; as you say next, your shell isn't actually using /dev/tty.
SM> The shell running in this terminal is using /dev/console, although
SM> ps doesn't seem to get this right:
SM> sh-3.2# ps PID TTY TIME CMD 717 ? 00:00:00 sh
SM> sh-3.2# ls -l /proc/717/fd total 0 lrwx------ 1 sysload 0 64 Oct
SM> 21 15:01 0 -> /dev/console lrwx------ 1 sysload 0 64 Oct 21 15:05
SM> 1 -> /dev/console lrwx------ 1 sysload 0 64 Oct 21 15:05 2 ->
SM> /dev/console lrwx------ 1 sysload 0 64 Oct 21 15:05 255 ->
SM> /dev/console [..]
SM> If I connect via SSH from my client, the shell running within this
SM> session is using pts/0. Now, I *can* SSH to another machine, since
SM> SSH is now able to ask for a password.
SM> The problem is, that I need SSH to work without this, because
SM> there are scripts that need to be run. But I can't figure out how
SM> to tell SSH which device to use. The -t option doesn't do the
SM> trick.
SM> Since I have no idea on what to do next, any hint would be greatly
SM> appreciated.
SM> thanks in advance, stephan
SM> [1] In this case 2.6.18-92.el5 [2] That's like a serial terminal,
SM> for those not familiar with System z [3] OpenSSH_4.3p2, OpenSSL
SM> 0.9.8b 04 May 2006
--
Richard Silverman res@qoxp.net |