All line number are approximate, but most likely w/in 10 lines of the OpenSSH 1.2.3 tarball. I unpacked the tarball, and did a ./configure;make;make install and now I've had some problems. :-) OK, I've tracked down lots of goofy stuff w/ slack7 and OpenSSH I've got a couple of questions. What is /dev/tty and why does ssh try to open it to read the password instead of stdin?(this cause ssh to die w/ "You have no controlling tty. Cannot read passphrase.\n", line 69 of readpass.c, I've made it work by calling password = read_passphrase(prompt, 1); instead of password = read_passphrase(prompt, 0); in sshconnect.c line 940 Second, in sshd.c in the do_exec_no_pty function, line 2017 or so: if (dup2(inout[0], 1) < 0) /* stdout. Note: same socket as stdin. */ perror("dup2 stdout") This seems to cause the forked process to segfault, as a result scp doesn't work, nore does using ssh to send a command. What would the fix be for this? PS to damien: OpenSSH itselfs builds fine on the alpha, but I'm having to argue w/ gnome-askpass a little bit, I think it's just that I have to install some newer libraries.(rh 6.0 is old)
Circa 2000-Apr-14 12:07:02 -0500 schrieb Richard June: : PS to damien: OpenSSH itselfs builds fine on the alpha, but I'm having to : argue w/ gnome-askpass a little bit, I think it's just that I have to : install some newer libraries.(rh 6.0 is old) Have you tried x11-ssh-askpass? It just uses the regular X11 libraries. I'd be interested to know what happens to it on 64-bit platforms. http://www.jmknoble.cx/software/x11-ssh-askpass/ -- jim knoble jmknoble at pobox.com
On Fri, Apr 14, 2000 at 12:07:02PM -0500, Richard June wrote:> All line number are approximate, but most likely w/in 10 lines of the > OK, I've tracked down lots of goofy stuff w/ slack7 and OpenSSH > I've got a couple of questions. > What is /dev/tty and why does ssh try to open it to read the password > instead of stdin?openssh reads passwds from the current terminal (/dev/tty), reading from stdin is a bad idea, e.g. stdin might be redirected. some broken distributions ship with /dev/tty unreable.> (this cause ssh to die w/ "You have no controlling tty. > Cannot read passphrase.\n", line 69 of readpass.c, I've made it work by > calling > password = read_passphrase(prompt, 1); instead of > password = read_passphrase(prompt, 0); > in sshconnect.c line 940-m