Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Linux & Terminal
  4. SSH Commands

Linux & Terminal · Cheatsheet

SSH Commands Cheatsheet

SSH connections, key management, SCP/SFTP transfers, tunnels, and security hardening

54 commands 8 sections

On this sheet

Basic Connections 8 Key Management 7 SSH Agent 6 File Transfer (SCP & SFTP) 8 Port Forwarding & Tunnels 6 SSH Config File 8 Security & Hardening 8 Sources 3
Try it in the browser Check HTTP security headers for web applications and get improvement recommendations. Open Security Headers Analyzer

No entry matches that filter.

Basic Connections

  • ssh user@host Connect to remote host
  • ssh user@host -p 2222 Connect on custom port
  • ssh -i ~/.ssh/key.pem user@host Connect with specific key file
  • ssh -v user@host Verbose mode for debugging
  • ssh -o StrictHostKeyChecking=no user@host Relaxes host-key checks and can accept changed keys; avoid this for normal connections
  • ssh -J jump@bastion user@target Connect via jump host (ProxyJump)
  • ssh user@host "command" Run single command remotely
  • ssh -t user@host "sudo command" Force TTY allocation for sudo

Key Management

  • ssh-keygen -t ed25519 -C "email@example.com" Generate Ed25519 key pair
  • ssh-keygen -t rsa -b 4096 Generate 4096-bit RSA key pair
  • ssh-copy-id user@host Copy public key to remote host
  • ssh-keygen -l -f ~/.ssh/id_ed25519.pub Show key fingerprint
  • ssh-keygen -p -f ~/.ssh/id_ed25519 Change passphrase on existing key
  • ssh-keygen -R hostname Remove host from known_hosts
  • cat ~/.ssh/id_ed25519.pub Display public key for copying

SSH Agent

  • eval "$(ssh-agent -s)" Start SSH agent in current shell
  • ssh-add ~/.ssh/id_ed25519 Add key to SSH agent
  • ssh-add -l List keys loaded in agent
  • ssh-add -D Remove all keys from agent
  • ssh-add -t 3600 ~/.ssh/key Add key with 1-hour lifetime
  • ssh -A user@host Forward agent to remote host

File Transfer (SCP & SFTP)

  • scp file.txt user@host:/remote/path/ Copy file to remote host
  • scp user@host:/remote/file.txt ./local/ Copy file from remote host
  • scp -r ./dir user@host:/remote/ Copy directory recursively
  • scp -P 2222 file.txt user@host:/path/ Copy via custom port
  • sftp user@host Start interactive SFTP session
  • sftp> put localfile remotepath Upload file via SFTP
  • sftp> get remotefile localpath Download file via SFTP
  • rsync -avz ./src user@host:/dest Sync files efficiently over SSH

Port Forwarding & Tunnels

  • ssh -L 8080:localhost:80 user@host Local port forward (access remote:80 via local:8080)
  • ssh -R 9090:localhost:3000 user@host Remote port forward (expose local:3000)
  • ssh -D 1080 user@host Dynamic SOCKS proxy tunnel
  • ssh -L 5432:db-server:5432 user@bastion Tunnel to internal database
  • ssh -fN -L 8080:localhost:80 user@host Background tunnel (no shell)
  • ssh -O exit user@host Close a background tunnel

SSH Config File

  • Host myserver Define a connection alias
  • HostName 192.168.1.100 Server address for alias
  • User deploy Default username for connection
  • Port 2222 Custom port for connection
  • IdentityFile ~/.ssh/deploy_key Specific key for this host
  • ProxyJump bastion Jump through another host
  • Host * Wildcard: apply to all connections
  • ServerAliveInterval 60 Send keepalive every 60 seconds

Security & Hardening

  • PermitRootLogin no Disable root SSH login (sshd_config)
  • PasswordAuthentication no Disable password login (key only)
  • AllowUsers deploy admin Allow only specific users
  • Port 2222 Change default SSH port
  • MaxAuthTries 3 Limit authentication attempts
  • sudo systemctl restart sshd Restart SSH daemon after changes
  • chmod 700 ~/.ssh Correct .ssh directory permissions
  • chmod 600 ~/.ssh/id_ed25519 Correct private key permissions

Sources

  • https://man.openbsd.org/ssh OpenSSH client: connections, forwarding, and control commands.
  • https://man.openbsd.org/ssh_config OpenSSH client configuration, including host-key verification.
  • https://man.openbsd.org/sshd_config OpenSSH server authentication and access settings.

Related cheatsheets

  • Linux Commands61 commands
  • Bash Scripting53 commands
  • Vim Editor64 commands

Guides that use these commands

  • How to Write a Content-Security-Policy Header, Step by StepGuide · 8 min read
  • bcrypt vs Argon2id: How to Hash a Password for StorageGuide · 8 min read
  • JWT Generator: Create Signed JSON Web Tokens OnlineGuide · 7 min read

Tools for this work

  • Security Headers AnalyzerCheck HTTP security headers for web applications and get improvement recommendations.
  • DNS Security ScannerScan DNS records for security configurations including SPF, DKIM, and DMARC.
  • Email Security CheckerVerify email domain security with SPF, DKIM, DMARC, and MTA-STS checks.

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor