r/linuxupskillchallenge • • Apr 05 '21

Rest in peace snori74

379 Upvotes

I was contacted by Steve's (aka u/snori74) youngest daughter to bear the news of his health.

He has passed peacefully at 00:20am (NZT) this morning, April 5th.

His family would like the community to know that everyone that has joined or reached out has been the biggest help to him this last year. Especially anyone that sent him a postcard or made an extra effort to engage with him.

The Linux Upskill Challenge truely was his passion project that he always wanted to see succeed. He found so much joy in knowing that it was helping people across the world and treasured all the postcards that he got. 

Rest in peace, Steve. You will be greatly missed.


r/linuxupskillchallenge • • Oct 24 '21

PLEASE READ THIS FIRST! HOW THIS WORKS & FAQ

230 Upvotes

FREQUENTLY ASKED QUESTIONS - FAQ

Is this course for me?

This course is aimed at two groups: (1) Linux users who aspire to get Linux-related jobs in industry, such as junior Linux sysadmin, devops-related work and similar, and (2) Windows server admins who want to expand their knowledge to be able to work with Linux servers.

However, many others have happily used the course simply to improve their Linux command line skills – and that’s just fine too.

Will I pass LPIC/RHCA/LFCS/Linux+ certification if I take this course?

NO! This is NOT a preparation course for any Linux certification exam. It can help you, sure, but please refer to a more specific cert training if that's what you are aiming for.

When does it start?

The course always starts on the first Monday of the month. One of the key elements of the course is that the material is delivered in 20 bite-sized lessons, one each workday into the subreddit.

How long does it take? How many hours should I dedicate to it?

Depending on your experience and dedication, you can expect to spend 1-2 hours going through each lesson. The first few days are pretty basic, but there's generally some "Extension" items to spice things up a bit.

But don't worry, you can totally self-pace this if you want, the resources and discussions are kept for reference forever (or for as long as Reddit allow us).

Do I really need a cloud-based server?

Yes, if you’re in the target audience (see above) you definitely should. The fact that such a server is very remote, and open to attack from the whole Internet, “makes it real”. Learning how to setup such a VPS is also a handy skill for any sysadmin.

Instructions for setting up a suitable server with a couple of providers are in the "Day 0" posts. By all means use a different provider, but ensure you use Ubuntu LTS (preferably the latest version) and either use public key authentication or a Long, Strong, Unique password.

Of course, you’re perfectly entitled to use a local VM, an old laptop in the corner or a Raspberry Pi instead – and all of these will work fine for the course material. Just keep in mind what you are missing.

But what if I don't have a credit card (or don't want to use one) to setup an AWS/Azure/GCP server?

Check the post "Day 0 - Creating Your Own Server - without a credit card". There are other options of cloud providers there.

But what if I don’t want to use a cloud provider? I have a server/VM at home.

Then use your server. Check the post "Day 0 - Creating Your Own Server - without a credit card".

Why Ubuntu, can I use another distro?

The notes assume Ubuntu Server LTS (latest version) and it would be messy to include instructions/variations for other distros (at least right now). If you use Debian or CentOS (also good server choices), you yourself will need to understand and cope with any differences (e.g. apt vs yum).

Should I be stopping or terminating my server when not in use?

Using a free-tier VPS, the load of the course does not exceed any thresholds. You can leave it running during the challenge but it's good to keep an eye on it (i.e. don't forget about it later or your provider will start charging you).

I noticed there was a kernel update, but no one said to reboot.

Reboot it. This is one of the few occasions you will need to reboot your server, go for it. The command for that is sudo reboot now

I still have questions/doubts! What do I do?!

Feel free to post questions or comments here in the subreddit – or chat using the Discord server (https://discordapp.com/invite/wd4Zqyk) run by u/cobaltrune.

If you are inclined to contribute to the material and had the means to do it (i.e. a github account) you can submit an issue to the source directly.

Credits

The magnificent Steve Brorens is the mastermind behind the Linux Upskill Challenge. Unfortunately, he passed away but not before ensuring the course would continue to run in his absence. We miss you, snori.

Livia Lima is the one currently maintaining the material. Give her a shout out on Twitter.


r/linuxupskillchallenge • • Feb 17 '23

Appreciation post - Thank you for keeping this course running.

181 Upvotes

A few years back, I decided I wanted to take my hobbyist Linux enthusiasm further. I stubled upon this course when Steve Brorens was still running it. I completed it, and learned alot from it.

I wrote it on my CV, and continued learning more. 6 months ago I started my current job as a Linux SysAdmin, and next month I will be taking the Red Hat Certified Systems Administrator course. I believe this course was a big help in setting me on this path, and for that I am very grateful.

After the course I tried to find a way to thank Steve for his work here, but all he wished for, was a postcard from people who took the course. So i went out and bought one, and sent to him from Denmark.

So thank you to Steve for creating this course, and a huge thank you for Livia for keeping it going.
I hope this will help others, as it helped me.


r/linuxupskillchallenge • • Feb 27 '21

/r/linuxupskillchallenge hit 10k subscribers yesterday

Thumbnail
frontpagemetrics.com
113 Upvotes

r/linuxupskillchallenge • • May 14 '21

The Linux Upskill Challenge got active students from 40+ countries in the world this month!

101 Upvotes

Looks like we have students this month from several countries, including:

Albania
Argentina
Australia
Austria
Belgium
Brazil
Bulgaria
Canada
China
Colombia
Czech Republic
Denmark
Dominican Republic
Ecuador
Finland
France
Germany
Greece
India
Indonesia
Iran
Ireland
Japan
Kyrgyzstan
Latvia
Macau
Mexico
Mongolia
Morocco
Mozambique
Netherlands
New Zealand
Nigeria
Romania
Russian Federation
Serbia
Spain
Sweden
Taiwan
Thailand
Uganda
Ukraine
United Kindom
United States
Venezuela

Thank you all for participating!


r/linuxupskillchallenge • • Apr 25 '21

Spread the word! Next course starts on Monday, 3 May 2021

89 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jun 19 '21

The Linux Upskill Challenge got active students from 35+ countries in the world this month!

88 Upvotes

Looks like we have students this month from several countries, including:

Argentina
Australia
Austria
Belgium
Brazil
Bulgaria
Canada
China
Colombia
Denmark
Dominican Republic
France
Germany
Greece
Iceland
India
Indonesia
Iran, Islamic Republic of
Italy
Morocco
Netherlands
Norway
Peru
Philippines
Romania
Russian Federation
Serbia
Seychelles
Spain
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine
United Kingdom
United States

Thank you all for participating!


r/linuxupskillchallenge • • Jan 31 '21

HOW THIS WORKS...

87 Upvotes

You'll need to setup a cloud-based server

Do I really need a cloud-based server?

Yes, if you’re in the target audience (see below) you definitely should. The fact that such a server is very remote, and open to attack from the whole Internet, “makes it real”. Learning how to setup such a VPS is also a handy skill for any sysadmin.

Instructions for setting up a suitable server with a couple of providers are in the "Day 0" posts. By all means use a different provider, but ensure you use Ubuntu LTS (preferably 20.04), and either use public key authentication or a Long, Strong, Unique password.

Of course, you’re perfectly entitled to use a local VM, an old laptop in the corner or a Raspberry Pi instead – and all of these will work fine for the course material.

Why Ubuntu, can I use another distro?

The notes assume Ubuntu Server LTS 20.04 and it would be messy to include instructions/variations for every other distro. If you use Debian or CentOS (also good server choices), you yourself will need to understand and cope with any differences (e.g. apt vs yum).

Target audience

This course is squarely aimed at two groups: (1) Linux users who aspire to get Linux-related jobs in industry, such as junior Linux sysadmin, devops-related work and similar, and (2) Windows server admins who want to expand their knowledge to be able to work with Linux servers.

However, many others have happily used the course simply to improve their Linux command line skills – and that’s just fine too.

A daily lesson

One of the key elements of the course is that the material is delivered in 20 bite-sized lessons, one each workday into this subreddit. At any one time, just the last four lessons are available (we remove the older ones) – this gives you a bit of an incentive to “keep up”.

The course always starts on the first Monday of the month. The first few days are pretty basic, but there's generally some "Extension" items for the more experienced.

Expect to spend 1-2 hours going through each. Some find it handy to read the notes through quickly in the day, then do the practical stuff in the evening – but do whatever suits you.

Support

Feel free to post questions or comments here in the subreddit – or chat using the Discord server (https://discordapp.com/invite/wd4Zqyk) run by u/cobaltrune.

Patreon?

No, but there are a number of ways you can support and show your appreciation.


r/linuxupskillchallenge • • Jan 31 '21

Day 1 - Accessing your server

81 Upvotes

INTRO

You should now have a remote server setup running the latest Ubuntu Server LTS (Long Term Support) version. You alone will be administering it. To become a fully-rounded Linux server admin you should become comfortable working with different versions of Linux, but for now Ubuntu is a good choice.

Once you have reached a level of comfort at the command-line then you'll find your skills transfer not only to all the standard Linux variants, but also to Android, Apple's OSX, OpenBSD, Solaris and IBM AIX. Throughout the course you'll be working on Linux - but in fact most of what is covered is applicable to any system in the "UNIX family" - and the major differences between them are with their graphic user interfaces such as Gnome, Unity, KDE etc - none of which you’ll be using!

Although there is a "root" user, you will be logging in and working from the user account that you setup. Because this is a member of the group "sudo" it is able to run commands "as root" by preceding them with "sudo".

YOUR TASKS TODAY:

  • Connect and login remotely to your server

  • Run a few simple simple commands to check the status of your server

  • Change your password

INSTRUCTIONS

Remote access used to be done by the simple telnet protocol, but now the much more secure SSH (“Secure SHell) protocol is always used.

If you're using any Linux or Unix system, including Apple's MacOS, then you can simply open up a "terminal" session and use your command-line ssh client like this:

ssh user@<ip address>

For example:

ssh [email protected]

On Linux distributions with a menu you'll typically find the terminal under "Applications menu -> Accessories -> Terminal", "Applications menu -> System -> Terminal" or "Menu -> System -> Terminal Program (Konsole)"- or you can simply search for your terminal application. In many cases Ctrl+Alt+T will also bring up a terminal windows.

If you have configured the remote server with your SSH public key (see "Password-less SSH login" in the EXTENSION section of this post), then you'll need to point to the location of the private part as proof of identity with the "-i" switch, typically like this:

ssh -i ~/.ssh/id_rsa [email protected]

A very slick connection process can be setup with the .ssh/config feature - see the "SSH client configuration" link in the EXTENSION section below.

On an MacOS machine you'll normally access the command line via Terminal.app - it's in the Utilities sub-folder of Applications.

On recent Windows 10 versions, the same command-line client is now available, but must be enabled (via "Settings", "Apps", "Apps & features", "Manage optional features", "Add a feature", "OpenSSH client".

Alternatively, you can install the Windows Subsystem for Linux which gives you a full local command-line Linux environment, including an SSH client - ssh.

There are also GUI SSH clients for Windows (PuTTY, MobaXterm) and MacOS (Terminal.app, iTerm2).

Regardless of which client you use, the first time you connect to your server, you may receive a warning that you're connecting to a new server - and be asked if you wish to "cache the host key". Do this. Now, if you get a warning in future connections it means that either: (a) you are being fooled into connecting to a different machine or (b) someone may be trying a "man in the middle" attack.

So, now login to your server as your user - and remember that Linux is case-sensitive regarding user names, as well as passwords.

Once logged in, notice that the "command prompt” that you receive ends in $ - this is the convention for an ordinary user, whereas the "root" user with full administrative power has a # prompt.

Try these simple commands:

ls

uptime

free

df -h

uname -a

If you're using a password to login (rather than public key), then now is a good time to ensure that this is very strong and unique - i.e. At least 10 characters - because your server is fully exposed to bots that will be continuously attempting to break in. Use the passwd command to change your password. To do this, think of a new, secure password, then simply type passwd, press “Enter” and give your current password when prompted, then the new one you've chosen, confirm it - and then WRITE IT DOWN somewhere. In a production system of course, public keys and/or two factor authentication would be more appropriate.

It's very handy to be able to cut and paste text between your remote session and your local desktop, so spend some time getting confident with how to do this in your setup.

Log out by typing exit.

You'll be spending a lot of time in your SSH client, so it pays to spend some time customizing it. At the very least try "black on white" and "green on black" - and experiment with different monospaced fonts, ("Ubuntu Mono" is free to download, and very nice).

POSTING YOUR PROGRESS

Regularly posting your progress can be a helpful motivator. Feel free to post to the subreddit a small introduction of yourself, and your Linux background for your "classmates" - and notes on how each day has gone.

Of course, also drop in a note if you get stuck or spot errors in these notes.

WRAP

You now have the ability to login remotely to your own server. Perhaps you might now try logging in from home and work - even from your smartphone! - using an ssh client app such as "Termux". As a server admin you'll need to be comfortable logging in from all over. You can also potentially use JavaScript ssh clients (search for "consolefish"), or from a cybercafe - but these options involve putting more trust in third-parties than most sysadmins would be comfortable with when accessing production systems.

A NOTE ON "HARDENING"

Your server is protected by the fact that its security updates are up to date, and that you've set Long Strong Unique passwords - or are using public keys. While exposed to the world, and very likely under continuous attack, it should be perfectly secure. Next week we'll look at how we can view those attacks, but for now it's simply important to state that while it's OK to read up on "SSH hardening", things such as changing the default port and fail2ban are unnecessary and unhelpful when we're trying to learn - and you are perfectly safe without them.

EXTENSION

If this is all too easy, then spend some time reading up on:

RESOURCES

Copyright 2012-2020 @snori74 (Steve Brorens). Can be reused under the terms of the Creative Commons Attribution 4.0 International Licence (CC BY 4.0).


r/linuxupskillchallenge • • Oct 31 '21

The Linux Upskill Challenge got active students from 23+ countries in the world this month!

77 Upvotes

Looks like we have students this month from several countries, including:

Argentina
Australia
Belgium
Bosnia and Herzegovina
Brazil
Canada
China
Czech Republic
Dominican Republic
Germany
Greece
India
Indonesia
Japan
Korea, Republic of
Mongolia
Mozambique
Netherlands
Nigeria
Romania
Russian Federation
Seychelles
Thailand
United Kingdom
United States
Ukraine
Vietnam

Thank you all for participating!


r/linuxupskillchallenge • • May 24 '21

HOW THIS WORKS...

77 Upvotes

READ FIRST! HOW THIS WORKS & FAQ

FREQUENTLY ASKED QUESTIONS - FAQ

Is this course for me?

This course is aimed at two groups: (1) Linux users who aspire to get Linux-related jobs in industry, such as junior Linux sysadmin, devops-related work and similar, and (2) Windows server admins who want to expand their knowledge to be able to work with Linux servers.

However, many others have happily used the course simply to improve their Linux command line skills – and that’s just fine too.

Will I pass LPIC/RHCA/LFCS/Linux+ certification if I take this course?

NO! This is NOT a preparation course for any Linux certification exam. It can help you, sure, but please refer to a more specific cert training if that's what you are aiming for.

When does it start?

The course always starts on the first Monday of the month. One of the key elements of the course is that the material is delivered in 20 bite-sized lessons, one each workday into the subreddit.

How long does it take? How many hours should I dedicate to it?

Depending on your experience and dedication, you can expect to spend 1-2 hours going through each lesson. The first few days are pretty basic, but there's generally some "Extension" items to spice things up a bit.

But don't worry, you can totally self-pace this if you want, the resources and discussions are kept for reference forever (of for as long as Reddit allow us).

Do I really need a cloud-based server?

Yes, if you’re in the target audience (see above) you definitely should. The fact that such a server is very remote, and open to attack from the whole Internet, “makes it real”. Learning how to setup such a VPS is also a handy skill for any sysadmin.

Instructions for setting up a suitable server with a couple of providers are in the "Day 0" posts. By all means use a different provider, but ensure you use Ubuntu LTS (preferably the latest version) and either use public key authentication or a Long, Strong, Unique password.

Of course, you’re perfectly entitled to use a local VM, an old laptop in the corner or a Raspberry Pi instead – and all of these will work fine for the course material. Just keep in mind what you are missing.

But what if I don't have a credit card (or don't want to use one) to setup an AWS/Azure/GCP server?

Check the post "Day 0 - Creating Your Own Server - without a credit card". There are other options of cloud providers there.

But what if I don’t want to use a cloud provider? I have a server/VM at home.

Then use your server. Check the post "Day 0 - Creating Your Own Server - without a credit card".

Why Ubuntu, can I use another distro?

The notes assume Ubuntu Server LTS (latest version) and it would be messy to include instructions/variations for other distros (at least right now). If you use Debian or CentOS (also good server choices), you yourself will need to understand and cope with any differences (e.g. apt vs yum).

Should I be stopping or terminating my server when not in use?

Using a free-tier VPS, the load of the course does not exceed any thresholds. You can leave it running during the challenge but it's good to keep an eye on it (i.e. don't forget about it later or your provider will start charging you).

I noticed there was a kernel update, but no one said to reboot.

Reboot it. This is one of the few occasions you will need to reboot your server, go for it. The command for that is sudo reboot now

I still have questions/doubts! What do I do?!

Feel free to post questions or comments here in the subreddit – or chat using the Discord server (https://discordapp.com/invite/wd4Zqyk) run by u/cobaltrune.

If you are inclined to contribute to the material and had the means to do it (i.e. a github account) you can submit an issue to the source directly.

Credits

The magnificent Steve Brorens is the mastermind behind the Linux Upskill Challenge. Unfortunately, he passed away but not before ensuring the course would continue to run in his absence. We miss you, snori.

Livia Lima is the one currently maintaining the material. Give her a shout out on Twitter.


r/linuxupskillchallenge • • Jul 08 '21

Stopping by to say thank you!

76 Upvotes

Good morning/afternoon/evening r/linuxupskillchallenge !!!TLDR; Finished the course at my own pace, and wanted to say thank you for organizing all this information! 10/10 would learn it all again! :)

I finished the course this afternoon ( I was following asynchronously at my own pace using the GitHub) and I wanted to take a moment to express my appreciation to u/livia2lima and all others involved in running this free educational challenge. I've been studying linux administration for over a year through books, youtube videos, udemy courses, and even college courses, so a large portion of this course was refresher or familiar to me. BUT I definitely learned a couple things, particularly about logs, and I *really* appreciated the sections at the end of many of the lessons that were "If you know this, check this out too...". It made it really easy for me as a slightly overqualified student to find the 'next level' of what I may have been familiar with, and gave me a good direction to move forward on a subject.

If anyone is working on the course and wondering if what they're learning is quality information, let me put you at ease. The information and structure presented here is like a 20 day condensed college "Linux Admin 101" course. Some of the depth is missing, but the extra learning links provided at the bottom make up some of that! (Plus its free)


r/linuxupskillchallenge • • Apr 16 '21

The Linux Upskill Challenge got students from around the world!

75 Upvotes

Looks like we have students this month from several countries, including:

Albania
Argentina
Australia
Austria
Bangladesh
Brazil
Bulgaria
Burundi
Canada
China
Denmark
Dominican Republic
France
Germany
Greece
India
Indonesia
Iran, Islamic Republic of
Italy
Japan
Kenya
Macedonia
Mexico
Morocco
Nepal
Netherlands
Nigeria
Pakistan
Palestinian Territory
Poland
Romania
Russian Federation
Saudi Arabia
Serbia
Solomon Islands
Spain
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine
United Arab Emirates
United Kingdom
United States
Venezuela
Vietnam

Thank you all for participating!


r/linuxupskillchallenge • • Apr 06 '25

Day 0 - Get Your Own Server

73 Upvotes

INTRO

First, you need a server. You can't learn about administering a remote Linux server without having one of your own - so today we're going to get one - completely free!

Through the magic of Linux and virtualization, it's now possible to get a small Internet server setup almost instantly - and at a very low cost. Technically, what you'll be doing is creating and renting a VPS ("Virtual Private Server"). In a data center somewhere, a single physical server running Linux will be split into a dozen or more Virtual servers, using the KVM (Kernel-based Virtual Machine) feature that's been part of Linux since early 2007.

In addition to a hosting provider, we also need to choose which "flavor" of Linux to install on our server. If you're new to Linux then the range of "distributions" available can be confusing - but the latest LTS ("Long Term Support") version of Ubuntu Server is a popular choice, and what you'll need for this course.

Do you have a free server I can use?

Well, not quite yet.

SadServers has a beta scenario - "Resumable Server": Linux Upskill Challenge

This is a Debian 11 server without a challenge; it's for you to do as you please. Please be mindful that it still has some limitations (there's still no outgoing Internet access) and there can be some issues.

So, what are the options?

Check your options, see what fits you best. Take a minute to watch the video, it will answer most of your questions. When you have your server ready, you can start the challenge.

Day 1, here we go!


r/linuxupskillchallenge • • Mar 27 '23

Spread the word! Next course starts on Monday, 3 April 2023

73 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Feb 24 '21

Spread the word!

73 Upvotes

Each month it's important that we get a batch of new learners - so if you found the challenge useful, innovative and fun then "pay in forward" by blogging, tweeting of just chatting about this. If there's list of 'ways to improve your command line skills", add this to it.

Consider promoting to fellow workmates, your manager, other students. There are many who could enjoy and benefit from this course - but don't know that it exists.

Livia is crossposting to relevant Reddit subreddit,s as I've done over the last year, but we should aim to get the word out much wider than that, because the more doing the challenge the better the forum content as people query, question and chat.

irect them to https://LinuxUpskillChallenge.org

We curently have 9,400 subscriptions to this subreddit - let's aim to have a tousand more when the course restarts on Monday!

- Steve


r/linuxupskillchallenge • • Aug 04 '24

Day 0 - Get Your Own Server

72 Upvotes

INTRO

First, you need a server. You can't learn about administering a remote Linux server without having one of your own - so today we're going to get one - completely free!

Through the magic of Linux and virtualization, it's now possible to get a small Internet server setup almost instantly - and at a very low cost. Technically, what you'll be doing is creating and renting a VPS ("Virtual Private Server"). In a data center somewhere, a single physical server running Linux will be split into a dozen or more Virtual servers, using the KVM (Kernel-based Virtual Machine) feature that's been part of Linux since early 2007.

In addition to a hosting provider, we also need to choose which "flavor" of Linux to install on our server. If you're new to Linux then the range of "distributions" available can be confusing - but the latest LTS ("Long Term Support") version of Ubuntu Server is a popular choice, and what you'll need for this course.

Do you have a free server I can use?

Well, not quite yet.

SadServers has a beta scenario - "Resumable Server": Linux Upskill Challenge

This is a Debian 11 server without a challenge; it's for you to do as you please. Please be mindful that it still has some limitations (there's still no outgoing Internet access) and there can be some issues.

So, what are the options?

Check your options, see what fits you best. Take a minute to watch the video, it will answer most of your questions. When you have your server ready, you can start the challenge.

Day 1, here we go!


r/linuxupskillchallenge • • Dec 25 '22

Spread the word! Next course starts on Monday, 2 January 2023

70 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Feb 28 '21

Day 1 - Accessing your server

70 Upvotes

INTRO

You should now have a remote server setup running the latest Ubuntu Server LTS (Long Term Support) version. You alone will be administering it. To become a fully-rounded Linux server admin you should become comfortable working with different versions of Linux, but for now Ubuntu is a good choice.

Once you have reached a level of comfort at the command-line then you'll find your skills transfer not only to all the standard Linux variants, but also to Android, Apple's OSX, OpenBSD, Solaris and IBM AIX. Throughout the course you'll be working on Linux - but in fact most of what is covered is applicable to any system in the "UNIX family" - and the major differences between them are with their graphic user interfaces such as Gnome, Unity, KDE etc - none of which you’ll be using!

Although there is a "root" user, you will be logging in and working from the user account that you setup. Because this is a member of the group "sudo" it is able to run commands "as root" by preceding them with "sudo".

YOUR TASKS TODAY:

  • Connect and login remotely to your server

  • Run a few simple simple commands to check the status of your server

  • Change your password

INSTRUCTIONS

Remote access used to be done by the simple telnet protocol, but now the much more secure SSH (“Secure SHell) protocol is always used.

If you're using any Linux or Unix system, including Apple's MacOS, then you can simply open up a "terminal" session and use your command-line ssh client like this:

ssh user@<ip address>

For example:

ssh [email protected]

On Linux distributions with a menu you'll typically find the terminal under "Applications menu -> Accessories -> Terminal", "Applications menu -> System -> Terminal" or "Menu -> System -> Terminal Program (Konsole)"- or you can simply search for your terminal application. In many cases Ctrl+Alt+T will also bring up a terminal windows.

If you have configured the remote server with your SSH public key (see "Password-less SSH login" in the EXTENSION section of this post), then you'll need to point to the location of the private part as proof of identity with the "-i" switch, typically like this:

ssh -i ~/.ssh/id_rsa [email protected]

A very slick connection process can be setup with the .ssh/config feature - see the "SSH client configuration" link in the EXTENSION section below.

On an MacOS machine you'll normally access the command line via Terminal.app - it's in the Utilities sub-folder of Applications.

On recent Windows 10 versions, the same command-line client is now available, but must be enabled (via "Settings", "Apps", "Apps & features", "Manage optional features", "Add a feature", "OpenSSH client".

Alternatively, you can install the Windows Subsystem for Linux which gives you a full local command-line Linux environment, including an SSH client - ssh.

There are also GUI SSH clients for Windows (PuTTY, MobaXterm) and MacOS (Terminal.app, iTerm2).

Regardless of which client you use, the first time you connect to your server, you may receive a warning that you're connecting to a new server - and be asked if you wish to "cache the host key". Do this. Now, if you get a warning in future connections it means that either: (a) you are being fooled into connecting to a different machine or (b) someone may be trying a "man in the middle" attack.

So, now login to your server as your user - and remember that Linux is case-sensitive regarding user names, as well as passwords.

Once logged in, notice that the "command prompt” that you receive ends in $ - this is the convention for an ordinary user, whereas the "root" user with full administrative power has a # prompt.

Try these simple commands:

ls

uptime

free

df -h

uname -a

If you're using a password to login (rather than public key), then now is a good time to ensure that this is very strong and unique - i.e. At least 10 characters - because your server is fully exposed to bots that will be continuously attempting to break in. Use the passwd command to change your password. To do this, think of a new, secure password, then simply type passwd, press “Enter” and give your current password when prompted, then the new one you've chosen, confirm it - and then WRITE IT DOWN somewhere. In a production system of course, public keys and/or two factor authentication would be more appropriate.

It's very handy to be able to cut and paste text between your remote session and your local desktop, so spend some time getting confident with how to do this in your setup.

Log out by typing exit.

You'll be spending a lot of time in your SSH client, so it pays to spend some time customizing it. At the very least try "black on white" and "green on black" - and experiment with different monospaced fonts, ("Ubuntu Mono" is free to download, and very nice).

POSTING YOUR PROGRESS

Regularly posting your progress can be a helpful motivator. Feel free to post to the subreddit a small introduction of yourself, and your Linux background for your "classmates" - and notes on how each day has gone.

Of course, also drop in a note if you get stuck or spot errors in these notes.

WRAP

You now have the ability to login remotely to your own server. Perhaps you might now try logging in from home and work - even from your smartphone! - using an ssh client app such as "Termux". As a server admin you'll need to be comfortable logging in from all over. You can also potentially use JavaScript ssh clients (search for "consolefish"), or from a cybercafe - but these options involve putting more trust in third-parties than most sysadmins would be comfortable with when accessing production systems.

A NOTE ON "HARDENING"

Your server is protected by the fact that its security updates are up to date, and that you've set Long Strong Unique passwords - or are using public keys. While exposed to the world, and very likely under continuous attack, it should be perfectly secure. Next week we'll look at how we can view those attacks, but for now it's simply important to state that while it's OK to read up on "SSH hardening", things such as changing the default port and fail2ban are unnecessary and unhelpful when we're trying to learn - and you are perfectly safe without them.

EXTENSION

If this is all too easy, then spend some time reading up on:

RESOURCES

Copyright 2012-2021 @snori74 (Steve Brorens). Can be reused under the terms of the Creative Commons Attribution 4.0 International Licence (CC BY 4.0).


r/linuxupskillchallenge • • Mar 21 '21

The next course starts on Monday, 5 April 2021

69 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month, so we will have kinda a week off after we finish this week. Don't forget to spread the word and let your friends know of how much fun you had!


r/linuxupskillchallenge • • Aug 29 '22

Alumni with an update.

67 Upvotes

sink afterthought shy school unite screw dependent strong door degree -- mass edited with redact.dev


r/linuxupskillchallenge • • Oct 23 '22

Spread the word! Next course starts on Monday, 7 November 2022

66 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Nov 21 '21

Spread the word! Next course starts on Monday, 6 December 2021

66 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Nov 16 '21

Thank you LinuxUpskillChallenge!

66 Upvotes

Since reddit has changed the site to value selling user data higher than reading and commenting, I've decided to move elsewhere to a site that prioritizes community over profit. I never signed up for this, but that's the circle of life


r/linuxupskillchallenge • • Feb 01 '21

Thank you Mr Snori, you are the man!

66 Upvotes

This is such an amazing concept. I believe that this will be next major step in our evolution as a species: the democratization of education. You have motivated me, and I in turn motivated two others. The whole squad is here in the cloud now!

You should have seen the glimmer in the eyes of the people I was teaching when I said, "you have now hacked into a computer!" High fives all around! We were all 31337 for a minute. You can't pay for that.