User Tools

Site Tools


ssh

SSH commands

Create private/public key on the current machine

ssh-keygen -t rsa

# another cypher :
ssh-keygen -t ed25519

Copy the public key on a distant server

ssh-copy-id -i ~/.ssh/id_rsa.pub user@server

Remove all keys belonging to hostname from a known_hosts file

ssh-keygen -R hostname
ssh.txt · Last modified: 2022/04/28 12:55 by jdx