Re: SSH doesn't work without a user logged in?
From: Joonas Saarinen (saarinen@nospam.mbnet.fi)Date: 12/30/01
- Next message: Steve Snyder: "Enhancement req.: run script on event"
- Previous message: Bill Unruh: "Re: SSH doesn't work without a user logged in?"
- In reply to: Bill Unruh: "Re: SSH doesn't work without a user logged in?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Joonas Saarinen <saarinen@nospam.mbnet.fi> Date: Sun, 30 Dec 2001 22:46:10 GMT
Bill Unruh wrote:
> Why in the world would you put it inot inittab and with respawn. it does
> nothing, and has no controlling terminal so would keep connecting,
> exiting, connecting, exiting, etc. What is the purpose?
I am just trying to make a plain "terminal" computer which you
can't use locally but which connects automatically to another computer
that you can use via SSH. If you disconnect, you will just get a new
connection to destination (until you shut down the computer). Is
there a more elegant way to do this?
> Remember stuff in /etc/inittab is run by root, not by you. So it is root
> who would have to be allowed in on the far side.
I changed it a bit (hopefully to better direction):
/usr/bin/acmelogin
#!/bin/sh
su - foobar
/home/foobar/.profile :
while [ 1 == 1 ];
do
ssh -l joonas 192.168.0.1
done
It works fine when I run .profile manually from prompt, but via
/usr/bin/acmelogin it doesn't.
- Next message: Steve Snyder: "Enhancement req.: run script on event"
- Previous message: Bill Unruh: "Re: SSH doesn't work without a user logged in?"
- In reply to: Bill Unruh: "Re: SSH doesn't work without a user logged in?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]