{"componentChunkName":"component---src-templates-manual-template-tsx","path":"/manuals/client-user/64/hostkey-storage-formats.html","webpackCompilationHash":"d1750f6cc413894a8b5c","result":{"data":{"promoBlocks":{"edges":[{"node":{"contentful_id":"47glnSpWzXeFylv2vfQEF8","internal":{"type":"ContentfulPromotionBlock"},"title":{"internal":{"type":"ContentfulHeading"},"contentful_id":"7KIOfSfgwJnCXuvRN6CfrP","textContent":"Standing privileges are a risk with PAM","color":"black","size":"medium"},"subTitle":null,"content":{"nodeType":"document","internal":{"content":"{\"nodeType\":\"document\",\"data\":{},\"content\":[{\"nodeType\":\"paragraph\",\"content\":[{\"nodeType\":\"text\",\"value\":\"Start your journey towards a just-in-time (JIT) model with zero standing privileges (ZSP). Read 'Remove Standing Privileges Through a Just-In-Time PAM Approach' by Gartner , courtesy of SSH.COM.\\n \\n\",\"marks\":[],\"data\":{}}],\"data\":{}}]}"}},"callToAction":{"internal":{"type":"ContentfulButton"},"contentful_id":"19EUesynV2Z7HHcuJk0BAS","content":"Download Gartner research","internalLink":null,"externalLink":"https://info.ssh.com/gartner_research_privileged_access_management","assetLink":null,"anchor":null},"picture":{"internal":{"type":"ContentfulAsset"},"contentful_id":"2ClylmBswcfDx4XdO7NTmL","title":"ICON Gartner ZSP","description":"","file":{"url":"//images.ctfassets.net/0lvk5dbamxpi/2ClylmBswcfDx4XdO7NTmL/78e899153ed66aec3b03b9a2cacd112d/ICON_Gartner_ZSP_ICON_Gartner.png","contentType":"image/png"},"fluid":{"aspectRatio":1,"src":"//images.ctfassets.net/0lvk5dbamxpi/2ClylmBswcfDx4XdO7NTmL/78e899153ed66aec3b03b9a2cacd112d/ICON_Gartner_ZSP_ICON_Gartner.png?w=3000&q=50","srcSet":"//images.ctfassets.net/0lvk5dbamxpi/2ClylmBswcfDx4XdO7NTmL/78e899153ed66aec3b03b9a2cacd112d/ICON_Gartner_ZSP_ICON_Gartner.png?w=750&h=750&q=50 750w,\n//images.ctfassets.net/0lvk5dbamxpi/2ClylmBswcfDx4XdO7NTmL/78e899153ed66aec3b03b9a2cacd112d/ICON_Gartner_ZSP_ICON_Gartner.png?w=1500&h=1500&q=50 1500w,\n//images.ctfassets.net/0lvk5dbamxpi/2ClylmBswcfDx4XdO7NTmL/78e899153ed66aec3b03b9a2cacd112d/ICON_Gartner_ZSP_ICON_Gartner.png?w=1601&h=1601&q=50 1601w","sizes":"(max-width: 3000px) 100vw, 3000px"},"fixed":{"width":3000,"height":3000,"src":"//images.ctfassets.net/0lvk5dbamxpi/2ClylmBswcfDx4XdO7NTmL/78e899153ed66aec3b03b9a2cacd112d/ICON_Gartner_ZSP_ICON_Gartner.png?w=3000&q=50","srcSet":""}},"centered":true,"indentMainContent":null,"transparentBackground":null,"imageScale":70,"imagePadding":null,"name":"WIKI migration side promo block2","product":null,"funnel":null,"topic":null,"keywords":null,"type":null,"priority":null,"globalOverride":null}},{"node":{"contentful_id":"6dfNaA1UlY4bADKQk6awhs","internal":{"type":"ContentfulPromotionBlock"},"title":{"internal":{"type":"ContentfulHeading"},"contentful_id":"49Tb2wSR21P5C2cpcgMZ3","textContent":"Get Multi-cloud PAM software - for free!","color":"black","size":"medium"},"subTitle":null,"content":{"nodeType":"document","internal":{"content":"{\"data\":{},\"content\":[{\"data\":{},\"content\":[{\"data\":{},\"marks\":[],\"value\":\"PrivX® Free replaces your in-house jump hosts and combines your AWS, GCP and Azure access into one multi-cloud solution.\\n \\n\",\"nodeType\":\"text\"}],\"nodeType\":\"paragraph\"}],\"nodeType\":\"document\"}"}},"callToAction":{"internal":{"type":"ContentfulButton"},"contentful_id":"1dmQ13jyyZ46ID07eVNVFb","content":"PrivX Free","internalLink":null,"externalLink":"https://info.ssh.com/privx-free-access-management-software","assetLink":null,"anchor":null},"picture":{"internal":{"type":"ContentfulAsset"},"contentful_id":"4UUYdjING8micwZQur5o6d","title":"ICON computer (search)","description":"","file":{"url":"//images.ctfassets.net/0lvk5dbamxpi/4UUYdjING8micwZQur5o6d/1b378a0f4646075c7a4788f1afffbabe/ICON_computer__search_.svg","contentType":"image/svg+xml"},"fluid":{"aspectRatio":null,"src":null,"srcSet":null,"sizes":null},"fixed":{"width":null,"height":null,"src":null,"srcSet":null}},"centered":true,"indentMainContent":null,"transparentBackground":null,"imageScale":70,"imagePadding":null,"name":"WIKI migration side promo block1","product":null,"funnel":null,"topic":null,"keywords":null,"type":null,"priority":null,"globalOverride":null}}]}},"pageContext":{"isCreatedByStatefulCreatePages":false,"body":"<div bgcolor=\"white\" text=\"black\" link=\"#0000FF\" vlink=\"#840084\" alink=\"#0000FF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"header\"><tbody><tr><td><a href=\"http://www.ssh.com/\"><img src=\"images/colorbar_blue.png\" alt=\"SSH\" width=\"100%\" height=\"80\" border=\"0\" style=\"position: relative; top:0px;left:0px;\"><img src=\"images/logo_ssh_nega.png\" height=\"40\" border=\"0\" style=\"position: absolute; top:20px;left:55px;\"></a></td></tr></tbody></table><div class=\"navheader\"><table width=\"100%\" summary=\"Navigation header\"><tr><td width=\"40%\" align=\"left\"></td><th width=\"20%\" align=\"center\"></th><td width=\"40%\" align=\"right\"><a accesskey=\"h\" href=\"index.html\"><img src=\"images/home.gif\" alt=\"Home\"></a><a href=\"ix01.html\"><img src=\"images/index.gif\"></a> <a accesskey=\"p\" href=\"serverauth-pk.html\"><img src=\"images/prev.gif\" alt=\"Prev\"></a> <a accesskey=\"u\" href=\"serverauth-pk.html\"><img src=\"images/up.gif\" alt=\"Up\"></a> <a accesskey=\"n\" href=\"serverauth-pk-hostkey.html\"><img src=\"images/next.gif\" alt=\"Next\"></a>  </td></tr></table></div><div class=\"sect2\"><div class=\"titlepage\"><div><div><h3 class=\"title\"><a name=\"hostkey-storage-formats\"></a>Host Key Storage Formats</h3></div></div></div><a class=\"indexterm\" name=\"idp2291\"></a><a class=\"indexterm\" name=\"idp2293\"></a><p>When the host key is received during the first connection to a remote host (or when the\n        host key has changed) and you choose to save the key, its file name is stored in hashed\n        format, <code class=\"filename\">keys_hhh...</code>, where <code class=\"filename\">hhh</code> is a hash of the\n        host port and name. The saved file contains a hash of the host's public key. A salt is\n        included in the hash calculations. The value of the salt is stored in the file\n        <code class=\"code\">salt</code> in the same directory as the host keys\n        (<code class=\"filename\">$HOME/.ssh2/hostkeys</code><span class=\"phrase\"> on Unix,\n        <code class=\"filename\">%APPDATA%\\SSH\\HostKeys</code> on Windows</span>). The hashed\n        host key format is a security feature to make address harvesting on the hosts\n        difficult.</p><p>In the plain (traditional) format, the name of a host key file includes the host's name\n        and port, as in <code class=\"filename\">key_22_host.example.com.pub</code>, and the file contains the\n        host's public key in plaintext format.</p><p>The storage format can be controlled with the <code class=\"option\">filename-format</code>\n        attribute of the <code class=\"option\"><a class=\"xref\" href=\"ssh-broker-config.html#element-known-hosts\"><span class=\"command\"><strong>known-hosts</strong></span></a></code> element of the\n        <code class=\"filename\">ssh-broker-config.xml</code> configuration file. The attribute value must be\n        <code class=\"option\">plain</code> or <code class=\"option\">hash</code> (default).</p><pre class=\"programlisting\">&lt;known-hosts path=\"$HOME/.ssh2/hostkeys\" filename-format=\"plain\" /&gt;\n</pre><p>If you are adding the keys manually, the keys should be named with the\n        <em class=\"replaceable\"><code>key_&lt;port&gt;_&lt;host&gt;.pub</code></em> pattern, where\n        <em class=\"replaceable\"><code>&lt;port&gt;</code></em> is the port the Secure Shell server is running on\n        and <em class=\"replaceable\"><code>&lt;host&gt;</code></em> is the host name you use when connecting to the\n        server (for example, <em class=\"replaceable\"><code>key_22_alpha.example.com.pub</code></em>).</p><p>If both the hashed and plaintext format keys exist, the hashed format takes\n        precedence.</p><p>Note that the host identification is different based on the host name and port the\n        client is connecting to. The host name can occur in four different formats:</p><div class=\"itemizedlist\"><ul class=\"itemizedlist\" style=\"list-style-type: disc; \"><li class=\"listitem\"><p>Fully qualified domain name (FQDN)</p></li><li class=\"listitem\"><p>Short host name</p></li><li class=\"listitem\"><p>IPv4 address</p></li><li class=\"listitem\"><p>IPv6 address</p></li></ul></div><p>The host key for each name format has to be saved separately, as they are not mutually\n        exchangeable.</p><p>The host key is saved under the host name format used in the login. For example, if you\n        want to use all the host name formats when connecting to a remote host named\n        <em class=\"replaceable\"><code>alpha</code></em>, connect to the host first with the following commands\n        and save the host key under all four names:</p><div class=\"itemizedlist\"><ul class=\"itemizedlist\" style=\"list-style-type: disc; \"><li class=\"listitem\"><p><code class=\"code\">sshg3 user@alpha</code></p><p>produces the key with the short host name (in plain format\n            <code class=\"filename\">key_22_alpha.pub</code>)</p></li><li class=\"listitem\"><p><code class=\"code\">sshg3 user@alpha.example.com</code></p><p>produces the key with FQDN (in plain format\n            <code class=\"filename\">key_22_alpha.example.com.pub</code>)</p></li><li class=\"listitem\"><p><code class=\"code\">sshg3 user@10.1.101.10</code></p><p>produces the key with IPv4 address (in plain format\n            <code class=\"filename\">key_22_10.1.101.10.pub</code>)</p></li><li class=\"listitem\"><p><code class=\"code\">sshg3 user@fd00:10:1:103::1:2f69</code></p><p>produces the key with IPv6 address (in plain format\n              <code class=\"filename\">key_22_fd000010000101030000000000012f69.pub</code>)</p></li></ul></div><p>When connecting to a server using its IPv6 address, the IPv6 address given to\n        Tectia Client is canonicalized without the colons, and the canonical format is used in the\n        known host key file name. For example, the plain format host key file for\n        <code class=\"code\">::1#10022</code> would be\n        <code class=\"filename\">key_10022_00000000000000000000000000000001.pub</code>. The canonical format\n        is also used in the process of saving and reading hashed host keys.</p><p>Also if you need to connect to the same host but different port, your client needs a\n        separate host key for that purpose; for example <em class=\"replaceable\"><code>key_22_alpha.pub</code></em>\n        and <em class=\"replaceable\"><code>key_222_alpha.example.com.pub</code></em>.</p><p>After the first connection, the locally stored information about the server public key\n        will be used in server authentication.</p></div><div class=\"navfooter\"><table width=\"100%\" summary=\"Navigation footer\"><hr><tr><td width=\"40%\" align=\"left\"></td><th width=\"20%\" align=\"center\"></th><td width=\"40%\" align=\"right\"><a accesskey=\"h\" href=\"index.html\"><img src=\"images/home.gif\" alt=\"Home\"></a><a href=\"ix01.html\"><img src=\"images/index.gif\"></a> <a accesskey=\"p\" href=\"serverauth-pk.html\"><img src=\"images/prev.gif\" alt=\"Prev\"></a> <a accesskey=\"u\" href=\"serverauth-pk.html\"><img src=\"images/up.gif\" alt=\"Up\"></a> <a accesskey=\"n\" href=\"serverauth-pk-hostkey.html\"><img src=\"images/next.gif\" alt=\"Next\"></a>  </td></tr></table></div><div class=\"copyrightfooter\" align=\"center\"><p class=\"footer\">\n  Copyright <img src=\"images/copyright.gif\"> 2020 SSH Communications Security Corporation<br>\n  This software is protected by international copyright laws. All rights reserved.<br><a href=\"http://www.ssh.com/about/contact\">Contact Information</a></p></div></div>","head":"<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><title>Host Key Storage Formats</title><link rel=\"stylesheet\" type=\"text/css\" href=\"sshx.css\"><meta name=\"generator\" content=\"DocBook XSL Stylesheets V1.79.1\"><link rel=\"home\" href=\"index.html\" title=\"Tectia® Client 6.4\"><link rel=\"up\" href=\"serverauth-pk.html\" title=\"Server Authentication with Public Keys\"><link rel=\"prev\" href=\"serverauth-pk.html\" title=\"Server Authentication with Public Keys\"><link rel=\"next\" href=\"serverauth-pk-hostkey.html\" title=\"Using the System-Wide Host Key Storage\"></head>","url":"/manuals/client-user/64/hostkey-storage-formats.html"}}}