contentintech
Tools

SSH

Connect securely, manage keys and forward ports on systems you control.

Updated Official documentation ↗

Connect

ssh user@hostOpen a remote session
ssh -p 2222 user@hostChoose the server port
ssh -i ~/.ssh/id_ed25519 user@hostChoose a private key
ssh user@host 'uptime'Run a command on the remote host

Keys

ssh-keygen -t ed25519 -C 'workstation'Create a key pair; protect the private key with a passphrase
ssh-add ~/.ssh/id_ed25519Add a key to an existing agent
ssh-add -lList keys held by the agent
ssh-keygen -lf ~/.ssh/id_ed25519.pubShow the public key fingerprint

Port forwarding

ssh -N -L 8080:localhost:3000 user@hostExpose a remote localhost service on your port 8080
ssh -N -L 5433:db.internal:5432 user@hostReach a database through an authorized SSH host
ssh -v user@hostDiagnose connection and authentication steps
ssh -o ConnectTimeout=10 user@hostLimit connection establishment time

Section navigation