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

Re: Remote admin of intermittently-connected machine?



On Wed, 2002-05-29 at 13:07, Karl E. Jorgensen wrote:
> Since I set up a Debian/GNU Linux box for a couple of friends, I find
> myself having to administer it remotely. Which is OK, as I did install
> ssh on it.
> 
> But the box is only connected to the internet via a pay-as-you-go
> dial-up connection. And: I only want them to be connected to the
> internet when *they* like it (it's their phonebill after all). Which
> probably doesn't always coincide with when I want to log in and do
> things.
> 
> So, this weird scheme occured to me: It is possible to do *some* of the
> admin via email? (not TCP/IP over SMTP/POP3...)  I'm thinking something
> along the lines of being able to email commands to the box (GNUPG signed
> and encrypted of course), and have it email me back the output (again,
> signed & encrypted). Similar to at(1), but remotely and via email.
> 
> This won't work for interactive commands, but *should* work for the
> basics (i.e. "apt-get --download-only --yes install so-and-so" etc.)
> 
> Writing something like the above is fraught with caveats and security
> holes, so I'd rather not write the lot from scratch. 
> 
> Has anybody else been in the same situation? What was your solution?
> Ideas and comments are welcome!

Interesting idea, another way that might be simpler to implement is to
put a shell script on a web server you control, and in your
/etc/ppp/ip-up.d/ put a script that downloads and runs the remote
script... something like

sh `lynx -source http://somesite/shellscript.sh`

you could of course also put some encryption and authentication as well
and do something like

sh `lynx -auth username:pass -source https://somesite/shellscript.sh`

or some more complicated thing of your own devising



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: