Skip to Content
Navigation:

A stick figure smiling

Here's a preview from my zine, Bite Size Networking!! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!

Image of a comic. To read the full HTML alt text, click "read the transcript".

browse more comics! get the zine!
read the transcript!

ssh keys

An ssh key is a secret key that lets you SSH to a machine

person: hello!
ssh: That’s on my list of authorized keys! come in!

ssh-copy-id

This script installs your SSH key on a host (over SSH)

$ ssh-copy-id user@host (puts it in .ssh/authorized-keys etc)

installing a SSH key is surprisingly finicky so this script is helpful!

port forwarding

ssh user@host.com - Nfl 
3333:localhost:8888 

3333 = local port 8888 = remote port

Lets you view a remote server that’s not on the internet in your browser.

just run 1 command

$ ssh user@host uname -a
runs the command uname -a & exits.

ssh-agent

remembers your SSH key passphrase so you don’t have to keep typing it

~.

~. closes the SSH , connection. Useful if it’s hanging!

mosh

ssh alternative: keeps the connection open if you disconnect + reconnect later

.ssh/config

Lets you set, per host: - Username to use. - SSH key to use - an alias!

so you can type $ ssh ALIAS instead of ssh user@very longdomain.com

Saturday Morning Comics!

Want another comic like this in your email every Saturday? Sign up here!

I'll send you one of my favourite comics from my archives every Saturday.
© Julia Evans 2024 | All rights reserved (see the FAQ for notes about licensing)