SSH (Secure Shell) basics

SSH allows us to connect to another computer on the network (remember that the internet is a network) and instead of running commands (things like mkdir and cd and everything else we do in a terminal are commands) on our own computers, we can run them on the other computer. Like how in Zoom you can remote control another person's computer...

We're going to try to use our terminals to SSH into that same comme.nirmisi.org server and do things on it. I've created accounts for all of you on that server. And they all have the same password, we're going to do X things:

 

For those on windows:

Please install the ubuntu terminal for yourselves first.

Login to the server

So open your terminals and run the following command: ssh harini@comme.nirmisi.org

And enter this password hugewing29

Obviously replace harini with your own name. This will connect you to the server, now first change your password.

You can obviously also ssh to this server using it's IP address, try that if you'd like and share the command you'd use for that.

 

Change your password

The command for that is passwd so run that command

passwd

In the prompts that appear enter your old password, then your new password twice. You'll need to enter a strong password, at least a little strong. You can use this if you want a simple but still kind of strong password.

 

Create you own folder and web page

 

When you point your browser to https://comme.nirmisi.org it pulls up the page that's found at /var/www/html/index.html

So when you go to https://comme.nirmisi.org/playground, it pulls up /var/www/html/playground/index.html

Every one of you can edit that file. Try it. cd to the directory /var/www/html/playground/ and use a text editor in the command line to edit it. You have 3 editors installed on this server, tilde, nano, and ne. ne is by far the easiest to use. So once you're inside the playground folder, run:

ne index.html

And make changes to the file. Save it with control+S And quit the editor with control+Q

 

If you've got this, get yourself a personal sandbox to play in. Create your own folder inside the playground folder with mkdir name-of-folder, you can see I've created my own folder already with ls.

cd into your folder and start making your own index.html file with ne index.html.

Bung in whatever code you want, save it and quit. Now find your webpage in the browser and be pleased with yourself (only a little bit.)