Module 10 of 12

Networking & Remote Work

Lessons

About This Module

Much of real shell work happens on machines you never sit in front of: cloud servers, Raspberry Pis, build boxes, a colleague's test environment. The shell is how you reach them. With a few commands you can log in securely, move files back and forth, and talk to web services, all without leaving your terminal.

This module starts with SSH keys: generating a key pair with ssh-keygen, installing it on a server with ssh-copy-id, and logging in without typing a password. Next comes the SSH config file (~/.ssh/config), which turns long connection commands into short names. Then copying files between machines with scp and rsync. The module finishes with curl, for downloading pages and calling REST APIs straight from the command line.

If you can, practise against a small cloud server or a second machine on your network as you watch the lessons in order, then continue on to Automation & Scheduling.

Lessons

4 videos
01

Quickly Set Up SSH Keys

The three minimum steps to log in with SSH keys instead of a password: create a key pair with ssh-keygen, copy the public key to the server with ssh-copy-id, then connect with ssh.

02

SSH Config Basics

A quick tutorial on creating and using an SSH config file, so you can save usernames, hostnames, ports and keys for each server and connect with a short name.

03

Copying Files Between Servers with scp and rsync

How to copy files from one Linux server to another with the scp and rsync commands, without needing a shared network folder such as a Samba share or NFS export.

04

Supercharge Your Workflow with cURL

Learn Linux TV explains what cURL is and how to use it: pulling data from a website, saving output to a file, and working with RESTful APIs from the command line.