Ga naar inhoud

OpenSSH Cheat-SheetΒΆ

Known HostsΒΆ

Remove Entry from the Known-Hosts File.

ssh-keygen -R hostname

Using the SSH Config FileΒΆ

If you are regularly connecting to multiple remote systems over SSH, you can configure your remote servers with the .ssh/config file.

Example:*

1
2
3
4
5
6
7
8
9
Host dev
    HostName dev.your-domain
    User xcad
    Port 7654
    IdentityFile ~/.ssh/targaryen.key

Host *
    User root
    Compression yes

Connect to a host (like dev , eg.) with ssh dev.