DELAPARRA
Index
Color
NL
Category: CLI commands

ssh

Explained by Updated

What is ssh?

ssh: Secure Shell — Log in to a remote server securely over the network. ssh opens a secure, encrypted connection to another computer, usually to get a terminal on a server: ssh user@server.example.com. It is also the transport behind scp, rsync and Git over SSH. Use key-based login instead of passwords. Generate a key pair with ssh-keygen, put the public key on the server, and keep the private key on your machine, protected with a passphrase.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about ssh

What should you keep in mind with ssh?

A ~/.ssh/config file saves typing, with short names for servers and their user, port and key. On servers, disable password login and root login over SSH, and keep the system updated. SSH tunnels with -L let you reach a database that only listens locally on the server, without exposing it to the internet, which is a safe way to inspect production data when needed.

At a glance

CategoryCLI commands
Explained by
Updated

More CLI commands terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.