Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

ssh

Secure Shell remote login

Syntax

ssh [OPTION]... [USER@]HOSTNAME [COMMAND]

Common Options

-pSpecify port
-iSpecify identity file
-vVerbose mode
-XEnable X11 forwarding
-NDo not execute remote command
-fRun in background

Common Examples

ssh user@hostname

Login to remote server

ssh -p 2222 user@hostname

Login with specific port

ssh -i ~/.ssh/key.pem user@hostname

Login with key file

ssh user@hostname "ls -la"

Execute remote command

Related Commands

Related Tools

More Code & Dev Tools