AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 528680
Accepted
Dustin Oprea
Dustin Oprea
Asked: 2013-08-06 01:34:16 +0800 CST2013-08-06 01:34:16 +0800 CST 2013-08-06 01:34:16 +0800 CST

SSH 主机密钥:“ssh-keygen -H”与“ssh-keyscan”

  • 772

“ssh-keygen -F”似乎为给定的主机名返回一个主机密钥(第一次匹配?),“ssh-keyscan”似乎返回所有匹配,但顺序不清楚。

两者的具体区别是什么?

ssh
  • 1 1 个回答
  • 4186 Views

1 个回答

  • Voted
  1. Best Answer
    dawud
    2013-08-06T02:03:01+08:002013-08-06T02:03:01+08:00

    从ssh-keygen(1)手册页:

    -H      Hash a known_hosts file.  This replaces all hostnames and addresses with hashed
            representations within the specified file; the original content is moved to a
            file with a .old suffix.  These hashes may be used normally by ssh and sshd, but 
            they do not reveal identifying information should the file's contents be 
            disclosed.  This option will not modify existing hashed hostnames and is 
            therefore safe to use on files that mix hashed and non-hashed names.
    

    并从ssh-keyscan(1)手册页:

    -H      Hash all hostnames and addresses in the output.  Hashed names may be used 
            normally by ssh and sshd, but they do not reveal identifying information should
            the file's contents be disclosed.
    

    前者在本地朗姆酒,散列您的~/.ssh/known_hosts文件,而后者联系远程服务器以请求其密钥。

    • 0

相关问题

  • 如何最好地设置 ssh 隧道以访问远程网络 (Linux)

  • SSH 和重定向

  • 通过 SSH 会话使用 NET USER 命令拒绝访问

  • SSH 服务器零日漏洞利用 - 保护自己的建议

  • ubuntu apt-get upgrade - 如何在 shell 中单击确定?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve