in the linux (for windows users i highly recommend to install WSL2 with shared C and D disk file system among win10 and ubuntu; your existing network firewall ACL of main admin workstation to brocade is enough, WSL will NAT your linux) run below command: ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/moguy/.ssh/id_dsa): /home/moguy/.ssh/id_dsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/moguy/.ssh/id_dsa.  <span><a href="https://www.itforce.mn/index.php/2021/03/15/generate-pub-and-private-ssh-keys-for-passwordless-ssh-access/" class="readmore">Continue reading &rarr;</a></span>{"id":1546,"date":"2021-03-15T16:07:13","date_gmt":"2021-03-15T08:07:13","guid":{"rendered":"https:\/\/www.itforce.mn\/?p=1546"},"modified":"2021-03-17T18:43:14","modified_gmt":"2021-03-17T10:43:14","slug":"generate-pub-and-private-ssh-keys-for-passwordless-ssh-access","status":"publish","type":"post","link":"https:\/\/www.itforce.mn\/index.php\/2021\/03\/15\/generate-pub-and-private-ssh-keys-for-passwordless-ssh-access\/","title":{"rendered":"Generate pub and private ssh keys for passwordless ssh access"},"content":{"rendered":"<pre><em><strong>in the linux (for windows users i highly recommend to install WSL2 with shared C and D disk file system among win10 and ubuntu; your existing network firewall ACL of main admin workstation to brocade is enough, WSL will NAT your linux) run below command:\r\nssh-keygen -t dsa<\/strong><\/em>\r\nGenerating public\/private dsa key pair.\r\nEnter file in which to save the key (\/home\/moguy\/.ssh\/id_dsa):\r\n\/home\/moguy\/.ssh\/id_dsa already exists.\r\nOverwrite (y\/n)? y\r\nEnter passphrase (empty for no passphrase):\r\nEnter same passphrase again:\r\nYour identification has been saved in \/home\/moguy\/.ssh\/id_dsa.\r\nYour public key has been saved in \/home\/moguy\/.ssh\/id_dsa.pub.\r\nThe key fingerprint is:\r\nSHA256:NW9kX0RJNKDza22347348734123984794721ppqXegwtY moguy@ws008-101.itforce.local\r\nThe key's randomart image is:\r\n+---[DSA 1024]----+\r\n|            .+BX*|\r\n|            . .*=|\r\n|          oo= ..+|\r\n|         . Bo+.. |\r\n|        S   Bo.  |\r\n|         . =.++ .|\r\n|       . .+.B+ + |\r\n|        + EOo.o  |\r\n|       . .+oo.   |\r\n+----[SHA256]-----+\r\n\r\n<\/pre>\n<p>ps1<\/p>\n<p>Be sure before generation of the pub\/pri keys that your hostname is in fqdn format and resolvable by your DNS<\/p>\n<p>ps2<\/p>\n<p>if you still get prompt to enter password, then on ubuntu\/kali of WSL (on your workstation linux):<\/p>\n<pre>sudo nano \/etc\/ssh\/ssh_config\r\nPubkeyAcceptedKeyTypes=+ssh-dss\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1546","post","type-post","status-publish","format-standard","hentry","category-security"],"_links":{"self":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/comments?post=1546"}],"version-history":[{"count":11,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1546\/revisions"}],"predecessor-version":[{"id":1579,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1546\/revisions\/1579"}],"wp:attachment":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/media?parent=1546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/categories?post=1546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/tags?post=1546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}