无法检查我的服务器RSA指纹。我做错了什么?
$ ls /etc/ssh
moduli ssh_host_dsa_key ssh_host_key.pub
ssh_config ssh_host_dsa_key.pub ssh_host_rsa_key
sshd_config ssh_host_key ssh_host_rsa_key.pub
$ ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub
/etc/ssh/ssh_host_rsa_key.pub is not a public key file.
$ ssh-keygen -lf /etc/ssh/ssh_host_rsa_key
/etc/ssh/ssh_host_rsa_key is not a public key file.
答案 0 :(得分:0)
这是文件权限问题。
$ cat /etc/ssh/ssh_host_rsa_key.pub
/etc/ssh/ssh_host_rsa_key.pub: Permission denied