{"id":13960,"date":"2022-09-22T15:16:45","date_gmt":"2022-09-22T12:16:45","guid":{"rendered":"https:\/\/www.hyyat.com\/?post_type=docs&#038;p=13960"},"modified":"2022-09-22T15:18:21","modified_gmt":"2022-09-22T12:18:21","password":"","slug":"storage-box-ssh-keys","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/storage-box-ssh-keys\/","title":{"rendered":"Storage Box SSH Keys"},"content":{"rendered":"<h1 class=\"text-transform-none font-family-merriweather mt-3 mb-1\">Storage Box SSH Keys<\/h1>\n<article>\n<h1 id=\"ssh-key-authentication-for-storage-boxes\"><\/h1>\n<\/article>\n<h1 id=\"ssh-key-authentication-for-storage-boxes\">SSH key authentication for Storage Boxes<\/h1>\n<p>If you use SCP, SFTP, rsync or BorgBackup, you can log in using SSH key authentication without entering a password.<\/p>\n<p>Depending on the SSH port of the Backup account\/Storage Box you use, you may need to use a specific format for the public SSH key. The following keys are supported:<\/p>\n<table style=\"width: 64.9741%; height: 72px;\">\n<thead>\n<tr style=\"border-color: #756f6f; border-style: dashed;\">\n<th style=\"padding-right: 40px; width: 23.8494%; height: 24px; text-align: center;\">SSH Port<\/th>\n<th style=\"padding-right: 40px; width: 40.1674%; height: 24px; text-align: center;\">Key Format<\/th>\n<th style=\"padding-right: 40px; width: 67.2539%; height: 24px; text-align: center;\">Algorithms<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border-style: dotted; border-color: #756f6f;\">\n<td style=\"width: 23.8494%; height: 24px; text-align: center; padding-right: 40px;\">22<\/td>\n<td style=\"width: 40.1674%; padding-right: 40px; height: 24px; text-align: center;\">RFC4716<\/td>\n<td style=\"width: 67.2539%; height: 24px; text-align: center;\">RSA, ECDSA<\/td>\n<\/tr>\n<tr style=\"border-color: #756f6f; border-style: dotted; height: 24px;\">\n<td style=\"width: 23.8494%; padding-right: 40px; height: 24px; text-align: center;\">23<\/td>\n<td style=\"width: 40.1674%; padding-right: 40px; height: 24px; text-align: center;\">Standard OpenSSH Format<\/td>\n<td style=\"width: 67.2539%; padding-right: 40px; height: 24px; text-align: center;\">RSA, ECDSA, ED25519<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If you want to use the services over both ports, then you must store the public SSH key in both formats (RFC4716 and OpenSSH format) in the <code>.ssh\/authorized_keys<\/code> file. Please note that a new line should be at the end of the file.<\/p>\n<p>Each sub-account requires its own authorized_keys file in the sub-account&#8217;s directory.<\/p>\n<h2 id=\"generating-ssh-keys\"><\/h2>\n<h2 id=\"generating-ssh-keys\">Generating SSH keys<\/h2>\n<p>You can use ssh-keygen to generate a new pair of SSH keys:<\/p>\n<div class=\"gatsby-highlight\" data-language=\"console\">\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%; text-align: left;\">\n<pre class=\"language-console line-numbers\" style=\"padding-right: 120px;\"><span style=\"color: #ffffff;\"><code class=\"language-console\">server&gt; ssh-keygen\r\nGenerating public\/private rsa key pair.\r\nEnter file in which to save the key (\/root\/.ssh\/id_rsa):\r\nEnter passphrase (empty for no passphrase):\r\nEnter same passphrase again:\r\nYour identification has been saved in \/root\/.ssh\/id_rsa.\r\nYour public key has been saved in \/root\/.ssh\/id_rsa.pub.\r\nThe key fingerprint is:\r\ncb:3c:a0:39:69:39:ec:35:d5:66:f3:c5:92:99:2f:e1 root@server\r\nThe key's randomart image is:\r\n+--[ RSA 2048]----+\r\n|                 |\r\n|                 |\r\n|                 |\r\n|         .   =   |\r\n|      . S = * o  |\r\n|   . = = + + =   |\r\n|    X o =   E .  |\r\n|   o + . .   .   |\r\n|    .            |\r\n+-----------------+<\/code><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Warning: With the default settings, using ssh-keygen will overwrite an existing SSH key! As an alternative, with the parameter <code>-f<\/code>, you can specify a different file path.<\/p>\n<h2 id=\"upload\"><\/h2>\n<h2 id=\"upload\">Upload<\/h2>\n<p>Please activate the SSH service of your Storage Box within Robot. Afterwards you can upload your public key with the following command for both Storage Box ports:<\/p>\n<div class=\"gatsby-highlight\" data-language=\"text\">\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%; text-align: left;\">\n<pre class=\"language-text line-numbers\" style=\"padding-right: 40px;\"><span style=\"color: #ffffff;\"><code class=\"language-text\">server&gt; cat ~\/.ssh\/id_rsa.pub | ssh -p23 uXXXXX@uXXXXX.your-storagebox.de install-ssh-key\r\nuXXXXX@uXXXXX.your-storagebox.de's password:\r\nKey No. 1 (ssh-rsa user@host) was installed in RFC4716 format\r\nKey No. 1 (ssh-rsa user@host) was installed in OpenSSH format<\/code><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>After this you can use the public SSH key to login without a password.<\/p>\n<h2 id=\"manual\"><\/h2>\n<h2 id=\"manual\">Manual<\/h2>\n<p>You can also upload your key manually. Therefor please use the following guides:<\/p>\n<h3 id=\"extended-ssh-service-on-port-23-sftprsyncborgbackup\"><\/h3>\n<h3 id=\"extended-ssh-service-on-port-23-sftprsyncborgbackup\">Extended SSH Service on Port 23 (SFTP\/Rsync\/BorgBackup)<\/h3>\n<p>Port 23 uses the one-line OpenSSH format of the public key.<\/p>\n<h4 id=\"upload-with-ssh-copy-id-openssh-85\"><\/h4>\n<h4 id=\"upload-with-ssh-copy-id-openssh-85\">Upload with ssh-copy-id (OpenSSH 8.5+)<\/h4>\n<p>You can use <code>ssh-copy-id<\/code> to upload the new key:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<div class=\"gatsby-highlight\" data-language=\"text\">\n<pre class=\"language-text line-numbers\"><span style=\"color: #ffffff;\"><code class=\"language-text\">ssh-copy-id -p 23 -s uXXXXX@uXXXXX.your-storagebox.de<\/code><\/span><\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"upload-without-ssh-copy-id--manually\">Upload without ssh-copy-id \/ Manually<\/h4>\n<p>If you have an older OpenSSH client software, you can upload the public key also manual:<\/p>\n<div class=\"gatsby-highlight\" data-language=\"text\">\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 99.8996%;\">\n<pre class=\"language-text line-numbers\"><span style=\"color: #ffffff;\"><code class=\"language-text\">ssh -p 23 uXXXXX@uXXXXX.your-storagebox.de mkdir .ssh\r\nscp -P 23 .ssh\/id_rsa.pub uXXXXX@uXXXXX.your-storagebox.de:.ssh\/authorized_keys<\/code><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 id=\"ssh-service-on-port-22-sftp\"><\/h3>\n<h3 id=\"ssh-service-on-port-22-sftp\">SSH Service on Port 22 (SFTP)<\/h3>\n<p>For the SSH service on port 22, you must convert your public key into the RFC4716 format and then upload it.<\/p>\n<h4 id=\"converting-your-key-to-rfc4716-format\"><\/h4>\n<h4 id=\"converting-your-key-to-rfc4716-format\">Converting your key to RFC4716 format<\/h4>\n<p>To convert the public SSH key into the correct format, enter the following command:<\/p>\n<p><code><\/code><\/p>\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"><span style=\"color: #ffffff;\"><code>ssh-keygen -e -f .ssh\/id_rsa.pub &gt; .ssh\/id_rsa_rfc.pub<\/code><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>\u00a0<\/code><\/p>\n<p>The public SSH key should now look like the one below:<\/p>\n<div class=\"gatsby-highlight\" data-language=\"console\">\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<pre class=\"language-console line-numbers\"><span style=\"color: #ffffff;\"><code class=\"language-console\">server&gt; cat .ssh\/id_rsa_rfc.pub\r\n---- BEGIN SSH2 PUBLIC KEY ----\r\nComment: \"&lt;comment&gt;\"\r\nAAAAB3NzaC1yc2EAAAABIwAAAQEAz+fh731CVfH3FPM0vK5hX7NT5HogdBEQ4ryGJIeVMv\r\nmCQJWwrFtdWh1pXMyXsYzXq1xbjILgCZGn+H0qUBKopJaa\/Pzsw5U0UyRgiFhU2k0eiHUq\r\npkiixTbHcLsCj3kjAv5i07wZJ\/ot246hLQD1PtSQtcX7nHvhdhenOTGO+ccpM2KEdX1E64\r\neaTtO9Bf7X4OTXnRxS7tjYH9sls5DOunpvoIZLvbmcVw1+wMdJBXOAU6\/tnkN5N3mYE4Hu\r\nJjnRtBAI9MS9Tt3DNAp1K\/udUHA6hfYf08fxYs9uwsCM793b7FczmVvHEIwIKszG7Jwiwo\r\nDqit4EExR8bNNCeD6D3Q==\r\n---- END SSH2 PUBLIC KEY ----<\/code><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h4 id=\"upload-1\"><\/h4>\n<h4 id=\"upload-1\">Upload<\/h4>\n<p>Now upload the created file:<\/p>\n<div class=\"gatsby-highlight\" data-language=\"text\">\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<pre class=\"language-text line-numbers\"><span style=\"color: #ffffff;\"><code class=\"language-text\">echo \"mkdir .ssh\" | sftp uXXXXX@uXXXXX.your-storagebox.de\r\nscp .ssh\/id_rsa_rfc.pub uXXXXX@uXXXXX.your-storagebox.de:.ssh\/authorized_keys<\/code><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 id=\"test\"><\/h3>\n<h3 id=\"test\">Test<\/h3>\n<p>Depending on which SSH key format you have uploaded, you should be able to log in without a password on port 22 and\/or 23:<\/p>\n<div class=\"gatsby-highlight\" data-language=\"console\">\n<table style=\"width: 100%; border-collapse: collapse; border-color: #474343; background-color: #474343;\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<pre class=\"language-console line-numbers\"><span style=\"color: #ffffff;\"><code class=\"language-console\">sftp -P &lt;22 or 23&gt; &lt;username&gt;@&lt;username&gt;.your-storagebox.de\r\nConnected to &lt;username&gt;.your-storagebox.de.\r\nsftp&gt; quit<\/code><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Storage Box SSH Keys SSH key authentication for Storage Boxes If you use SCP, SFTP, rsync or BorgBackup, you can log in using SSH key authentication without entering a password. Depending on the SSH port of the Backup account\/Storage Box you use, you may need to use a specific format for the public SSH key. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"doc_category":[2815],"doc_tag":[],"class_list":["post-13960","docs","type-docs","status-publish","hentry","doc_category-storag-box"],"year_month":"2026-05","word_count":660,"total_views":"4276","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.hyyat.com\/en\/author\/admin\/"},"doc_category_info":[{"term_name":"Storage Box","term_url":"https:\/\/www.hyyat.com\/en\/kb\/storag-box\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=13960"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13960\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=13960"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=13960"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=13960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}