Skip to content

ssh-config

Publickey for Github

Host github.com gist.github.com
    User git
    Hostname github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_ed25519-2022-04-21

Publickey and Password

Host router
    user root
    Hostname 192.168.1.1
    IdentityFile ~/.ssh/id_rsa-2022-08-23
    KexAlgorithms +diffie-hellman-group1-sha1
    PreferredAuthentications publickey,password
        HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa
        PubkeyAcceptedKeyTypes +ssh-rsa

Publickey

Host latitude
    user root
    Hostname 192.168.1.1
    IdentityFile ~/.ssh/id_ed25519-2022-04-21
    KexAlgorithms +diffie-hellman-group1-sha1
    PreferredAuthentications publickey
        HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa

Password

Host server
    user wuseman
    Hostname 192.168.1.1
    PreferredAuthentications publickey,password
    KexAlgorithms +diffie-hellman-group1-sha1
    PreferredAuthentications assword
        HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa

  • Comments are closed on this article!

Last update: December 4, 2022 19:31:07