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

Re: [Sheflug] headless



Ian Wright writes:
 > Thanks everyone,
 > 
 > Perhaps I should have described my problem more fully. What it is is that I
 > have the RH6.2 box running a machine tool which I want to put in my workshop
 > but I don't have room in there for a full machine/monitor/keyboard/mouse
 > setup. Ideally, I want to shove the RH6.2 machine down the back of the bench
 > and just switch it on and off at the plug and then be able to access it and
 > drive the relevant software from the comfort of my living room or maybe from
 > a laptop if I can find one cheap enough. I have a network set up and can
 > work the thing via ssh from another linux box or by vnc from the windoze
 > box - I just need to get rid of all the bits and pieces attached to the box
 > which aren't essential. I'm not too bothered about the security issues as
 > only me and the missus use the network and my link to the outside world has
 > a proxy on it but ssh seems pretty stable so I'm happy to use it.

If you've got ssh running on the machine, and you don't want to enter
a password each time, just use RSA authentication....

On the server run ssh-keygen (hit return when asked for a password -
gives an empty password on the RSA key).
This should give you ~/.ssh/identity and ~/.ssh/identity.pub files.

Copy ~/.ssh/identity.pub to ~/.ssh/authorized_keys on the machine you
want to login to.

I've got 3 machines that have been running without a monitor, keyboard
or mouse since they were rebooted after installation.
All of them are controlled over ssh - none of which require a password
to login.

Dunno if my explaination is clear so....

Example - as baz [at] flux.localdomain, I want to login as
root@noodles.localdomain, via ssh, without using a password...

As baz, on flux.localdomain:

ssh-keygen
(when prompted for password/confirmation hit return)
scp ~/.ssh/identity.pub root [at] noodles.localdomain:~/.ssh/authorized_keys

(enter the password for root on "noodles")

ssh root [at] noodles

(Viola! Root prompt on noodles)...

It's all in man ssh / man sshd

About the only thing that throws a spanner in the works is the file
permissions on the various files - check the man pages, but it should
all be setup OK as standard.

I dunno, am I missing something that everyone else hasn't commented
on, or have I got the wrong end of the stick (again)?

Cheers.

Baz.
-- 
Barrie J. Bremner

email: baz at barriebremner.com | OpenPGP ID: 5164F553

http://barriebremner.com/
[Contact information available at website]

   "Linux? Is that some kind of MacOS?"
      -- BT technical support

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.