I have encountered the same problem with sshd -i (under Mandrake linux 6.1) as that described by Ben L Perkins, this time with 2.1.1p4: ... Last login: Mon Jul 17 12:04:50 2000 from orpheus.qimr.edu.au -bash: ?oe90: command not found -bash: glorious: command not found -bash: ?]r90: command not found -bash: marshall4: command not found Connection to orpheus.qimr.edu.au closed. log: Jul 17 11:55:44 orpheus PAM_pwdb[14041]: (sshd) session opened for user davidD by (uid=0) Jul 17 11:55:45 orpheus sshd[14041]: syslogin_perform_logout: logout() returned an error The junk includes names of hosts on our local network who engage in ftp or telnet with my machine. There is no problem when sshd is run as a demon on another port. Cheers, David Duffy. | David Duffy. ,-_|\ | email: davidD at qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / * | Epidemiology Unit, The Queensland Institute of Medical Research \_,-._/ | 300 Herston Rd, Brisbane, Queensland 4029, Australia v
On Mon, 17 Jul 2000, David Duffy wrote:> I have encountered the same problem with sshd -i (under Mandrake > linux 6.1) as that described by Ben L Perkins, this time with > 2.1.1p4: ...Does this help? Index: sshd.c ==================================================================RCS file: /var/cvs/openssh/sshd.c,v retrieving revision 1.85 diff -u -r1.85 sshd.c --- sshd.c 2000/07/11 23:45:27 1.85 +++ sshd.c 2000/07/17 12:42:17 @@ -642,6 +642,7 @@ s2 = dup(s1); sock_in = dup(0); sock_out = dup(1); + startup_pipe = -1; /* * We intentionally do not close the descriptors 0, 1, and 2 * as our code for setting the descriptors won\'t work if -- | "Bombay is 250ms from New York in the new world order" - Alan Cox | Damien Miller - http://www.mindrot.org/ | Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)
On Mon, 17 Jul 2000, Damien Miller wrote:>Does this help?[tiny patch for sshd.c snipped] Damien, Indeed it does help. I applied that patch to the source for p4 and the -i option now appears to work correctly on my RedHat Linux 6.2 system. Thanks! Ben -- Ben L. Perkins -=- Houston, TX, USA