Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. ssh -o "HostKeyAlgorithms ssh-rsa" user@hostname
  2.  
  3. ssh -Q key
  4.  
  5. HostKeyAlgorithms
  6. Specifies the protocol version 2 host key algorithms that the client wants to use in order of preference. The default for this option is:
  7.  
  8. ecdsa-sha2-nistp256-cert-v01@openssh.com,
  9. ecdsa-sha2-nistp384-cert-v01@openssh.com,
  10. ecdsa-sha2-nistp521-cert-v01@openssh.com,
  11. ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
  12. ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
  13. ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
  14. ssh-rsa,ssh-dss
  15.  
  16. If hostkeys are known for the destination host then this default is modified to prefer their algorithms.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement