SSH protocol Commands
The Secure Shell protocol itself.All SSH protocol pages
- ssh -Q: list supported ciphers, kex, MACs and key typesssh -Q cipher, kex, mac, key and sig list the algorithms OpenSSH supports, even disabled ones. ssh -G shows what a host is offered; sshd -T the server.
- ssh-keygen -R hostname: remove a host key from known_hostsssh-keygen -R hostname deletes a host's keys from known_hosts after a key change. Entries for [host]:port and IPs, finding hashed lines with -F, and hashing.
- ssh-keygen -s ca -I id -n user key.pub: create an SSH user certificateSign a user's public key with ssh-keygen -s to create an OpenSSH certificate: key ID, principals, validity with -V, default extensions and TrustedUserCAKeys.
- ssh-keygen -y -f ~/.ssh/id_ed25519: get the public key from a private keyssh-keygen -y -f KEY prints the public key of an SSH private key. Recreate a lost .pub file, check that a key pair matches, and handle encrypted keys.