All tags
openssh
Narrow down
Shell39
- Tip
scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/scp -3 copies between two remote hosts through your own machineCopy a file from one server to another with scp, routed through the machine you type on3 Dec 2026 - Tip
restrict,command="/usr/local/bin/backup.sh" ssh-ed25519 AAAAC3Nza... backup@exampleCommand= in authorized_keys locks an SSH key to one jobGive a backup or deploy key exactly one thing it may do on the server.30 Nov 2026 - Tip
PerSourcePenalties authfail:30s max:30mPerSourcePenalties is the fail2ban that newer sshd already has built inKnow how OpenSSH 9.8 and later block noisy addresses by themselves, and how to tune it.30 Nov 2026 - Tip
RemoteCommand tmux new -A -s mainRemoteCommand in ssh_config runs a command every time you connectLand in the same remote session or folder automatically when you open SSH.30 Nov 2026 - Tip
CanonicalizeHostname yesCanonicalizeHostname lets you type short host names in sshMake ssh add your domain to short names and then apply the matching config block.30 Nov 2026 - Tip
ssh-keygen -Y sign -f ~/.ssh/id_ed25519 -n file release.tar.gzssh-keygen -Y sign lets your SSH key sign any fileSign and verify files with the SSH key you already have, without setting up GPG.30 Nov 2026 - Tip
ssh -4 [email protected]AddressFamily inet stops ssh from hanging on a broken IPv6 routeForce IPv4 for SSH when a host's IPv6 address resolves but does not work.30 Nov 2026 - Tip
sudo /usr/sbin/sshd -d -p 2222 -f /etc/ssh/sshd_config.newSshd -d -p 2222 tests a new SSH server config without risking your sessionRun a second sshd in the foreground on another port and watch why logins fail.30 Nov 2026 - Tip
ForceCommand internal-sftpForceCommand internal-sftp with ChrootDirectory makes an SFTP-only SSH accountGive someone file upload access in one folder without a shell on the server.30 Nov 2026 - Tip
ChannelTimeout session=30m direct-tcpip=1hChannelTimeout makes sshd close SSH sessions that sit idleLog out forgotten shells and stale tunnels after a set time of inactivity.30 Nov 2026 - Tip
ssh-keygen -c -C "work laptop 2026" -f ~/.ssh/id_ed25519ssh-keygen -c changes the comment on an SSH keyRename the label on an existing key so you can tell keys apart later.30 Nov 2026 - Tip
Host vm1HostKeyAlias stops SSH host key warnings for VMs behind one addressStore a separate host key per machine when several share one address on different ports.30 Nov 2026 - Tip
ssh-keygen -s user_ca -I alice-laptop -n alice -V +52w id_ed25519.pubssh-keygen -s signs SSH user certificates so servers trust one CASign user keys with a CA so servers stop needing every public key in authorized_keys.30 Nov 2026 - Tip
sudo ssh-keygen -Assh-keygen -A gives a cloned VM its own SSH host keysRegenerate missing host keys so cloned machines stop sharing one server identity.30 Nov 2026 - Tip
ssh -R 8080:localhost:3000 [email protected]ssh -R opens a port on the server that leads back to your machineMake a service on your laptop reachable from a remote server through the SSH connection.30 Nov 2026 - Tip
ListenAddress 192.0.2.10ListenAddress makes sshd answer on one address onlyKeep the SSH server off the public interface and listening only where you want it.30 Nov 2026 - Tip
DisableForwarding yesDisableForwarding yes switches off every kind of SSH tunnel in one lineStop users from using your SSH server as a tunnel or proxy into your network.30 Nov 2026 - Tip
Match Address 192.0.2.0/24A Match Address block in sshd_config allows passwords only from your LANUse different SSH server rules for logins from your own network and from outside.30 Nov 2026 - Tip
Match tagged tunnelTag and ssh -P give one SSH host several profilesSwitch a block of ssh_config settings on per command with a tag name.30 Nov 2026 - Tip
cd /var/www/uploadSftp -b runs a list of SFTP commands from a file over SSHScript uploads and downloads with sftp and stop at the first failed command.30 Nov 2026 - Tip
ssh -Q cipherssh -Q lists the algorithms your SSH client supportsSee which ciphers, key types and key exchanges your own ssh build can use.30 Nov 2026 - Tip
expiry-time="20270131" ssh-ed25519 AAAAC3Nza... guest@exampleexpiry-time in authorized_keys makes an SSH key stop working on a dateGive a temporary key a built-in end date so nobody has to remember to remove it.30 Nov 2026 - Tip
chmod 700 ~/.sshchmod 700 ~/.ssh fixes SSH keys that the server quietly ignoresCorrect the permissions sshd checks before it trusts your authorized_keys file.30 Nov 2026 - Tip
AddKeysToAgent yesAddKeysToAgent yes loads your key into the agent on first useMakes ssh add your private key to the agent the first time it is used.28 Nov 2026 - Tip
Include config.d/*Include in ssh config splits your hosts over several filesReads extra ssh config files from a folder, so each group of hosts gets its own file.28 Nov 2026 - Tip
ClientAliveInterval 60ClientAliveInterval lets sshd drop dead client connectionsMakes sshd check silent clients and disconnect them after a number of missed replies.28 Nov 2026 - Tip
ssh-keygen -F example.comssh-keygen -F finds a host in known_hostsSearches known_hosts for one host name and prints the entries it finds.28 Nov 2026 - Tip
ssh -o BatchMode=yes -o ConnectTimeout=5 [email protected] uptimessh -o BatchMode=yes makes scripts fail instead of waiting for a passwordStops ssh from asking for passwords or confirmations, so a script fails fast instead of hanging.28 Nov 2026 - Tip
from="192.168.1.0/24" ssh-ed25519 AAAAC3Nza... laptopFrom= in authorized_keys only accepts a key from addresses you chooseMakes an SSH key work only from the IP addresses or networks you list.27 Nov 2026 - Tip
Enter ~ .Type ~. to close a frozen SSH sessionCloses a hanging SSH session from your own keyboard without closing the terminal.27 Nov 2026 - Tip
ssh-keygen -y -f ~/.ssh/id_ed25519ssh-keygen -y rebuilds a lost public key from the private keyPrints the public key that belongs to a private key, so you can restore or match it.27 Nov 2026 - Tip
ServerAliveInterval 15ServerAliveInterval lets SSH notice a dead connectionMakes the SSH client check the server and drop a dead connection after about 45 seconds.27 Nov 2026 - Tip
AllowUsers alice [email protected]/24AllowUsers in sshd_config means only the accounts you name can log in over SSHLimits SSH logins to a short list of user names, optionally from specific addresses.26 Nov 2026 - Tip
pip3 install ssh-auditssh-audit tells you which weak algorithms your SSH server still offersChecks an SSH server's key exchange, ciphers and keys, and lists what to switch off.26 Nov 2026 - Tip
ssh -J user@jumphost user@internal-serverssh -J reaches a server behind a jump host in one commandConnects to a server through a jump host in one step, without a manual hop.21 Nov 2026 - Tip
ssh-keygen -R nas.localssh-keygen -R removes the old host key when SSH shouts about a changed fingerprintClears the old host key so SSH stops warning about a changed fingerprint after a reinstall.17 Nov 2026 - Tip
sudo sshd -t && sudo systemctl reload sshA sshd_config.d drop-in turns off password logins, a simple security stepDisables SSH password logins in a separate file that package updates leave alone.21 May 2026 - Tip
ssh-keygen -lf ~/.ssh/authorized_keysssh-keygen -lf audits authorized_keys, a security check for forgotten keysLists the fingerprint and type of every key allowed to log in to an account.21 May 2026 - Tip
sudo sshd -T | grep -Ei 'permitrootlogin|passwordauthentication|pubkeyauthentication|allowusers'Sshd -T prints the SSH settings that really apply, a quick security checkPrints the complete effective sshd configuration so you can see what is actually enabled.21 May 2026
Storage2
- Tip
scp -O backup.tar user@old-router:/tmp/scp -O brings back the old protocol when scp fails on an old SSH serverFix scp errors on routers and old servers that have no SFTP subsystem.30 Nov 2026 - Tip
Match host nas localnetwork 192.0.2.0/24Match localnetwork picks SSH settings based on the network you are onUse a direct address at home and a jump host elsewhere, with one host name.30 Nov 2026
Git2
- Tip
Host github.comIdentityAgent tells ssh which key agent to use for each hostPoint ssh at a different agent socket per host, or switch the agent off entirely.30 Nov 2026 - Tip
ssh -T [email protected]ssh -T [email protected] checks your SSH key without cloning anythingFind out in one command which account your key logs in as on a Git host.30 Nov 2026
Security1
Nothing matches.