Network

The ssh command

Opens a session on another machine, encrypted. The gateway to servers.

Syntax

ssh [usuario@]host

Most useful options

-pA port other than 22
-iUse a specific private key

Copy-ready examples

$ ssh invitado@servidor-aulaLog into another machine
$ exitClose the connection

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • The first time it asks you to accept the server fingerprint: that is normal.

Related commands

FAQ

How do I leave an ssh session?

Typing exit: it closes the connection, not your terminal.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course