[H-GEN] Using a linux box as a terminal
David Jericho
david.jericho at bytecomm.com.au
Tue May 20 21:26:54 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Wed, May 21, 2003 at 12:48:04PM +1200, Jay wrote:
> Any ideas as to how this could be done? I have had an extensive look around
> but do not seem to find much specific information. This can't be that exotic
> I am asking for. I tried within /etc/inittab but the os does not seem to like
> it. Something like 1:12345:respawn:/bin/sh -s '/usr/bin/ssh scoserver;init 3'
You can pretty much run everything from /etc/inittab if you really
wanted.
I'm not quite sure of the reason behind your actual choice of command.
Personally I would have just used the line
1:2345:respawn:/usr/bin/ssh scoserver
I'd also be wary of having runlevel 1 listed, because most
distributions have no started network in runlevel 1.
The other thing to note, is that the above ssh will be run with the
username of root. If you want to force another username, or a
prompting for the username use either
1:2345:repsawn:/usr/bin/ssh -l username scoserver
or you could write your own local wrapper script to ask for a username
first.
There are a variety of ways of doing it in anycase.
--
David Jericho
--
Scanned and found clear of viruses by EntireScan. http://www.entirescan.com/
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list