如何仅显示 SSH 服务器的主机密钥
show_ssh_host_key.sh
ssh-keyscan -t ed25519 ssh.my-domain.com 2>/dev/null | awk '{print $3}'示例输出
ssh_host_key_output.txt
AAAAC3NzaC1lZDI1NTE5AAAAIF6MwU1Wv+RUGjnMTw819+YnIj/vvLgdE0YrLTO1mB5JCheck out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow