From sebastian @ ITU / Wiki

Main: GeneralGuideToLinuxServerAdmin

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 user@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

        # man apt-get

or

        #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

Retrieved from http://www.itu.dk/people/sbut/?n=Main.GeneralGuideToLinuxServerAdmin
Page last modified on March 01, 2013, at 09:57 AM