General Guide To Linux Server Admin

Main.GeneralGuideToLinuxServerAdmin History

Hide minor edits - Show changes to markup

Changed lines 1-6 from:

Some basic guidelines for owners of Linux servers =================================================================================

1. Access ===============================

to:

Some basic guidelines for owners of Linux servers

1. Access

Added line 10:
Changed lines 21-22 from:

ssh -p 8022 rikke@130.226.142.185

to:
 ssh -p 8022 user@130.226.142.185
Added line 24:
Changed lines 27-35 from:

Note that, in this exmaple, you use the port -p option, as ssh service has been moved from its standard port, which is 22.

When access via keys works, you can (get an admin to) disable access via username/password.

2. basic sommands ===============================

to:

Note that, in this exmaple, you use the port -p option, as ssh service has been moved from its standard port, which is 22.

When access via keys works, you can (get an admin to) disable access via username/password.

2. basic sommands

Added line 38:
Changed lines 43-46 from:
                http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%

20Manual.pdf

to:
                http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%20Manual.pdf
Added line 49:
Added line 52:
Added line 55:
Added line 60:
Changed lines 64-66 from:

3. updating ===============================

to:

3. updating

Added line 69:
Added line 73:
Changed line 75 from:
  1. man apt-get
to:
        # man apt-get
Changed lines 77-78 from:
  1. apt-get --help
to:
        #apt-get --help
Changed lines 85-86 from:

4. security ===============================

to:

4. security

Added lines 1-83:

Some basic guidelines for owners of Linux servers =================================================================================

1. Access ===============================

Get familar with access via ssh - it is generally your only way of accessing the machine.

First step is making and understanding keys.

A guide on how to make keys and use them:

http://www.itu.dk/people/sbut/?n=Main.SecuritySshKeysHowTo

Try it:

ssh -p 8022 rikke@130.226.142.185 i.e. ssh -p portnumber username@<ipnumber or hostmane>

Note that, in this exmaple, you use the port -p option, as ssh service has been moved from its standard port, which is 22.

When access via keys works, you can (get an admin to) disable access via username/password.

2. basic sommands ===============================

Get familiar with the most basic linux commands

        Cheat sheets are very helpful:
                http://www.tuxfiles.org/linuxhelp/linuxcommands.html

                http://files.fosswire.com/2007/08/fwunixref.pdf

                http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%

20Manual.pdf

2.a get familiar with autocomplete (the TAB key) and history (arrow keys)

2.b understand sudo (performing commands with superuser rights)

2.c learn how to use

        command --help
        or
        man command

to learn more a bout a command.

3. updating ===============================

Get used to updating your machine from time to time:

        #sudo apt-get update
        #sudo apt-get upgrade

Use

  1. man apt-get

or

  1. apt-get --help

to learn more about what apt-get does.

Later, you might turn this into a cron job.

4. security ===============================

http://www.itu.dk/people/sbut/?n=Main.SecurityAdviceForServerOwners