[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting a tty to login to remote computer via ssh

On Wed, Oct 03, 2001 at 11:08:47AM -0700, Shriram Shrikumar wrote:
> Hi All,
> just wondering if it was possible to set one of the tty's like tty8 to login to
> another machine via ssh instead of just to the local machine.

Just a quick 2sec search, but this might point you in the right

init uses getty (or some variant - check /etc/inittab) to spawn a
terminal, and getty spawns /bin/login to produce the prompt and handle
user logins. getty can be instructed to spawn a different program with
the -l option. Perhaps if you put an entry like this in /etc/inittab:

8:23:respawn:/sbin/getty -l /usr/bin/ssh hostname 38400 tty8

where hostname is the remote host. According to the manpages, getty
will pass the name from the login: prompt on to ssh (since /bin/login
works in much the same way ssh does - for this purpose).

I've not tried this myself - perhaps there is someone out there who
has that may be of more help.


Mike Alborn <malborn@odoitau.dyn.dhs.org>
# pgp keyid: C36DC30D

Ain't nothin' an old man can do for me but bring me a message from a young man.
		-- Moms Mabley

Attachment: pgptn1O_uAaDH.pgp
Description: PGP signature

Reply to: