$ssh
Securely log into remote Linux servers and execute commands over encrypted connections.
ssh [OPTIONS] [USER@]HOSTNAME [COMMAND]Try `ssh` Live in Interactive Sandbox
Zero-install client simulation with real-time feedback.
Overview & How ssh Works
`ssh` (Secure Shell) is the industry-standard cryptographic network protocol for operating network services securely over an unsecured network. It provides end-to-end encrypted terminal login, remote command execution, and port forwarding.
Common Flags & Command Options
| Flag / Option | Description |
|---|---|
| -p [port] | Port to connect to on the remote server (default is 22). |
| -i [keyfile] | Select private key identity file for public key authentication (e.g., ~/.ssh/id_rsa). |
| -v | Verbose mode for debugging SSH connection and handshake failures. |
Practical Real-World Examples
ssh -i ~/.ssh/id_ed25519 user@remote-server.comInitiates encrypted SSH session using ED25519 public key authentication.
Frequently Asked Questions
How do you generate an SSH key pair in Linux?
Run `ssh-keygen -t ed25519 -C "your_email@example.com"` and follow the prompts to create your key in `~/.ssh/`.
Related Linux Commands
Transfer data from or to a server using HTTP, HTTPS, FTP, and more.
Non-interactive network downloader for HTTP, HTTPS, and FTP.
Send ICMP ECHO_REQUEST to network hosts to test connectivity and latency.
Print network connections, routing tables, interface statistics, and listening ports.
Securely copy files and directories between hosts over SSH connection.
Fast and versatile remote and local file-copying and synchronization tool.