ipdetecto.com logo
ipdetecto.com
My IPSpeed
Knowledge Hub
HomeKnowledge HubLinux Ssh Commands
© 2026 ipdetecto.com
support@ipdetecto.comAboutContactPrivacyTermsllms.txt
Basics
5 MIN READ
Apr 19, 2026

Linux SSH Commands

Connect and automate SSH: config stanzas, keys, ssh-agent, ProxyJump, and hardening basics.

ssh user@host starts a remote shell. Per-host defaults live in ~/.ssh/config: IdentityFile, Port, ProxyJump for bastions, and StrictHostKeyChecking policies. Keys beat passwords—protect private keys with passphrases and ssh-agent. Copy files with scp or rsync -e ssh. Review server settings with sshd -T on the host.

TaskCommandTip
Jump hostssh -J bastion user@internalProxyJump in config for teams
Forward agentssh -ARisky on untrusted servers
Debugssh -vvvShows KEX and auth steps

Related

Linux security commands, bastion hosts, sudo, networking commands

Frequently Asked Questions

Q.What is ~/.ssh/config used for?

It stores per-host aliases, ports, identities, and jump settings so you avoid long command lines.

Q.Why should I avoid ssh-agent forwarding on unknown hosts?

A malicious admin on the remote host can use your forwarded agent to authenticate to other systems as you.

Q.How do I rotate host keys safely?

Publish new keys, update known_hosts with ssh-keygen -R, then verify fingerprints out-of-band.

Q.What does ProxyJump replace?

Older ProxyCommand chains for bastion access—ProxyJump is simpler for multi-hop SSH.

Q.How can I run a single remote command?

Pass the command after the host: ssh user@host 'systemctl is-active nginx'.

Q.Why are ed25519 keys recommended?

They are short, fast, and avoid legacy RSA parameter choices—use modern OpenSSH key types.

Q.What breaks if DNS for the server changes?

Host key checks may warn if IP changes—verify the key fingerprint matches the same server identity.

Q.How does scp differ from rsync over ssh?

scp is simple for small copies; rsync adds delta sync and resumes for large trees.
TOPICS & TAGS
sshssh configProxyJumpssh-agentknown_hosts