Remote Access

ssh

Opens a secure remote shell connection.

ssh connects to remote machines securely, commonly for server administration, Git access, tunneling, and file transfer support.

Syntax
ssh [options] [user@]host [command]

Arguments explained

  • user chooses remote username.
  • host is the remote name or IP.
  • -p chooses port.
  • -i chooses identity key.
  • -L creates a local tunnel.

Common examples

Connect to a server
ssh alex@example.com

Logs into example.com as alex.

Run one remote command
ssh server.example.com 'uptime'

Executes uptime remotely and returns.

ssh Command
FieldDetails
Commandssh
CategoryRemote Access
Primary useOpens a secure remote shell connection.
Syntaxssh [options] [user@]host [command]