User Tools

Site Tools


ssh

SSH commands

Create private/public key on the current machine

ssh-keygen -t rsa

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: 2020/05/02 09:34 (external edit)