ssh-keyscan
Get the public SSH keys of remote hosts. More information: https://man.openbsd.org/ssh-keyscan.
- Retrieve all public SSH keys of a remote host:
ssh-keyscan
- Retrieve all public SSH keys of a remote host listening on a specific port:
ssh-keyscan -p
- Retrieve certain types of public SSH keys of a remote host:
ssh-keyscan -t
- Manually update the SSH known_hosts file with the fingerprint of a given host:
ssh-keyscan -H >>~/.ssh/known_hosts
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
