ssh

Linux · Network · available in the simulator

What it does

Connects to a remote system using SSH.

Syntax

ssh [opciones] [usuario@]servidor [comando]

Options and parameters

  • -p

    Port to connect to on the remote host.

    ssh -p 2222 ana@servidor
  • -i

    Selects a file from which the identity (private key) for public key authentication is read.

    ssh -i ~/.ssh/clave.pem ana@servidor
  • -v

    Verbose mode, informative debugging messages about connection progress.

  • -L

    Specifies local port forwarding to the remote host.

  • -R

    Specifies remote port forwarding to the local machine.

  • -X

    Enables X11 forwarding.

  • -N

    Do not execute a remote command; useful for just forwarding ports.

Usage examples

  • ssh usuario@servidor
  • ssh -i clave.pem usuario@host
  • ssh -p 2222 ana@servidor
  • ssh -i ~/.ssh/clave.pem ana@servidor
Practise ssh

Related commands