如何通过ssh显示已知主机的mac地址

use*_*011 0 ssh mac-address known-hosts

我想知道我目前无法访问的机器的 MAC 地址。但是,我有一个来自 ssh 的 known_hosts 文件,其中包含一个有效条目,并且鉴于我收到有关更改 MAC 地址的警告,我认为该地址已被 ssh 存储在某处。有没有办法显示这个保存的 MAC 地址?

Chr*_*ton 5

MAC 地址未存储在 known_hosts 文件中。查看sshd 手册页

 Each line in these files contains the following fields: markers
 (optional), hostnames, bits, exponent, modulus, comment.  The fields are
 separated by spaces.
Run Code Online (Sandbox Code Playgroud)