linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* /dev/tty now a directory so can't ssh out anywhere
@ 2004-08-28 12:41 Suresh Ramasubramanian
  2004-08-28 18:01 ` Greg KH
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Suresh Ramasubramanian @ 2004-08-28 12:41 UTC (permalink / raw)
  To: linux-hotplug

[please cc me, I'm not on this list]

I can ssh into this box (running 2.6.9-rc1-bk2) but cant ssh out ..

suresh@quirk 17:49:58 <~> $ ssh -2 suresh@192.168.1.2
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).

Only thing I noticed between 2.6.8.1 and 2.6.9-rc1-bk2 on this box is that 
the old /dev structure is now converted to udev, so I now have /dev/tty/* 
instead of /dev/ttyX devices.

Openssh seems to expect that /dev/tty is a device, not a directory and 
throws an error similar to when /dev/ttyX has a wrong permission  - the 
code's in readpass.c

In the routine (readpassphrase(), readpassphrase.c) where it reads in a 
password, it tries to open() /dev/tty, and if THAT fails, then use 
stdin/stdout:

So, if it can't open /dev/tty (which it can't, it being a directory), and 
the RPP_REQUIRE_TTY flag is set, then it returns NULL here.  From what I 
can see, that gets passed up, so it ends up sending nothing as the 
password

That's when things start to go boom .. so end result is I can't ssh out, 
but I can ssh into this box just fine.

 	srs


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-05  7:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
2004-08-28 18:01 ` Greg KH
2004-08-29  1:37 ` Suresh Ramasubramanian
2004-08-29  3:35 ` Suresh Ramasubramanian
2004-08-30  4:30 ` jnf
2004-09-05  7:58 ` Greg KH
2004-09-05  7:59 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).