{"id":228,"date":"2020-01-12T21:58:24","date_gmt":"2020-01-12T21:58:24","guid":{"rendered":"https:\/\/www.it-react.com\/?p=228"},"modified":"2025-07-13T07:18:00","modified_gmt":"2025-07-13T07:18:00","slug":"create-and-install-ssh-keys-on-linux-and-windows","status":"publish","type":"post","link":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/","title":{"rendered":"Generate and install SSH-keys on Linux and Windows"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p> A <em>SSH key<\/em> is an access credential in the SSH Protocol. SSH keys offer a more secure way of logging into a server with SSH than using user and password. More over, using a SSH-Key gives you the possibility to automate the login process, meaning you could create a script that will login to another computer without user intervention.  More info about SSH-Keys could be find <a href=\"https:\/\/www.ssh.com\/ssh\/key\">here<\/a>. <\/p>\n\n\n\n<p>Let&#8217;s see how it&#8217;s working for Linux and after that we move to Windows.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Linux<\/strong><\/h2>\n\n\n\n<p>We&#8217;ll call client the machine that initiates the login, and server the one that receives and accepts the SSH login.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step One &#8211; Create the RSA Key Pair<\/strong><\/h3>\n\n\n\n<p>On the client machine we&#8217;ll generate a SSH-Key pair using the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># ssh-keygen<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step Two &#8211; Save the Key Pair<\/strong><\/h3>\n\n\n\n<p>  You have the option to change the location and the name of the generated SSH-key pair or leave the default which is home directory of the user and the default name &#8211; id_rsa. We&#8217;ll leave it on default in this case.<\/p>\n\n\n\n<p> You will be prompted for a passphrase, it is recommended to use it, but it&#8217;s not mandatory to insert one. If you press Enter you will ignore this question. We will not set a passphrase this time because we need to create an automate SSH-login.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"574\" height=\"334\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/ssh-keygen.jpg\" alt=\"\" class=\"wp-image-508\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/ssh-keygen.jpg 574w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/ssh-keygen-300x175.jpg 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step Three &#8211; Copy the Public Key<\/strong> <\/h3>\n\n\n\n<p>If we look now in ~\/.ssh\/, we&#8217;ll find the key pair: id_rsa is the private key and id_rsa.pub is the public key. We have to copy now the public key to the destination computer using the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> # ssh-copy-id user@xxx.xxx.xxx.xxx<\/pre>\n\n\n\n<p>Replace user@xxx.xxx.xxx.xxx with the actual user and IP address of the server machine.<\/p>\n\n\n\n<p>You will be asked for the password of the user account you are logging in to, in our case, user@xxx.xxx.xxx.xxx <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"208\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/cp-ssh-key.jpg\" alt=\"\" class=\"wp-image-517\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/cp-ssh-key.jpg 956w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/cp-ssh-key-300x65.jpg 300w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/cp-ssh-key-768x167.jpg 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/figure>\n\n\n\n<p>Because we are logged in with user root, the key has been copied to <kbd>\/root\/.ssh\/authorized_keys<\/kbd> on the server machine.<\/p>\n\n\n\n<p>If ssh-copy-id is not working, you can copy the public key using the folowing commands:<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-preformatted\"># cat ~\/.ssh\/id_rsa.pub | ssh user@xxx.xxx.xxx.xxx \"cat &gt;&gt;  ~\/.ssh\/authorized_keys\"<\/pre>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step Four &#8211; Connect to server machine without password<\/strong><\/h3>\n\n\n\n<p>Now we can start the SSH connection from client machine to server machine without using a password. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"239\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/ssh-keygen-connect.jpg\" alt=\"\" class=\"wp-image-542\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/ssh-keygen-connect.jpg 612w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/ssh-keygen-connect-300x117.jpg 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/figure>\n\n\n\n<p>To give you a practical example, I&#8217;ve used a ssh-key based authentication login to implement an automatic Reverse SSH Tunnel from a Raspberry to a VPS. Raspberry would be the client machine that initiates the connection and it uses the privatekey, and VPS is the server machine which accepts the connection based on its public key. <br>More about configuring a Reverse SSH-Tunnel could be find <a href=\"https:\/\/www.it-react.com\/index.php\/2020\/01\/06\/how-to-setup-reverse-ssh-tunnel-on-linux\/\">here<\/a>. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Windows<\/strong><\/h2>\n\n\n\n<p>If we want to implement the same authentication on Windows, we can generate a ssh-key pair using PuTTY Key Generator. You can find it <a href=\"https:\/\/www.puttygen.com\/download-putty\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> <\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step One &#8211; Create the RSA Key Pair<\/strong> <\/h3>\n\n\n\n<p>After you start the application, you have to press the <kbd>Generate<\/kbd> button to create a pair of keys. Here is how it looks when the keys have been generated.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"470\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/putty-gen.jpg\" alt=\"\" class=\"wp-image-545\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/putty-gen.jpg 480w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/putty-gen-300x294.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> <strong>Step Two &#8211; Save the Key Pair<\/strong><\/h3>\n\n\n\n<p> Press <kbd>Save public key<\/kbd> and <kbd>Save private key<\/kbd> to manualy save both keys to a secure place in the client machine. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step Three &#8211; Copy the public key<\/strong><\/h3>\n\n\n\n<p>Use WinSCP to connect to the server machine. Use the user and the password to login and copy the public key in the ~\/.ssh\/authorized_keys file.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step Four &#8211; Connect to server machine without password<\/strong><\/h3>\n\n\n\n<p>After that you can configure Putty to connect to the destination computer using  ssh-key based authentication. Select the private key as you see below.  <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"434\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/set-putty-ssh-auth.jpg\" alt=\"\" class=\"wp-image-550\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/set-putty-ssh-auth.jpg 452w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/set-putty-ssh-auth-300x288.jpg 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/figure>\n\n\n\n<p>Starting from now you will not need to use the password anymore, the login will be done, without the password.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"417\" src=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/puty-ssh-connect.jpg\" alt=\"\" class=\"wp-image-549\" srcset=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/puty-ssh-connect.jpg 660w, https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/puty-ssh-connect-300x190.jpg 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<br>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A SSH key is an access credential in the SSH Protocol. SSH keys offer a more secure way of logging into a server with SSH than using user and password. More over, using a SSH-Key gives you the possibility to automate the login process, meaning you could create a script that will login to another [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":231,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","footnotes":""},"categories":[7,8],"tags":[22,21,4,20],"class_list":["post-228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-windows","tag-putty","tag-rsa-key","tag-ssh","tag-ssh-key"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Generate and install SSH-keys on Linux and Windows - IT-REACT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate and install SSH-keys on Linux and Windows - IT-REACT\" \/>\n<meta property=\"og:description\" content=\"A SSH key is an access credential in the SSH Protocol. SSH keys offer a more secure way of logging into a server with SSH than using user and password. More over, using a SSH-Key gives you the possibility to automate the login process, meaning you could create a script that will login to another [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"IT-REACT\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-12T21:58:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-13T07:18:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"299\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ioan Penu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ioan Penu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/\"},\"author\":{\"name\":\"Ioan Penu\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"headline\":\"Generate and install SSH-keys on Linux and Windows\",\"datePublished\":\"2020-01-12T21:58:24+00:00\",\"dateModified\":\"2025-07-13T07:18:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/\"},\"wordCount\":619,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"image\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg\",\"keywords\":[\"putty\",\"rsa-key\",\"ssh\",\"ssh-key\"],\"articleSection\":[\"Linux\",\"Windows\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/\",\"url\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/\",\"name\":\"Generate and install SSH-keys on Linux and Windows - IT-REACT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg\",\"datePublished\":\"2020-01-12T21:58:24+00:00\",\"dateModified\":\"2025-07-13T07:18:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg\",\"contentUrl\":\"https:\\\/\\\/www.it-react.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg\",\"width\":1080,\"height\":299,\"caption\":\"Photo by Jason D on Unsplash\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/index.php\\\/2020\\\/01\\\/12\\\/create-and-install-ssh-keys-on-linux-and-windows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.it-react.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate and install SSH-keys on Linux and Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#website\",\"url\":\"https:\\\/\\\/www.it-react.com\\\/\",\"name\":\"it-react\",\"description\":\"Ctrl\u2022Alt\u2022Automate\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.it-react.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.it-react.com\\\/#\\\/schema\\\/person\\\/bf08cffeb4b02ee6baff5d56ab17c8f0\",\"name\":\"Ioan Penu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\",\"caption\":\"Ioan Penu\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate and install SSH-keys on Linux and Windows - IT-REACT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/","og_locale":"en_US","og_type":"article","og_title":"Generate and install SSH-keys on Linux and Windows - IT-REACT","og_description":"A SSH key is an access credential in the SSH Protocol. SSH keys offer a more secure way of logging into a server with SSH than using user and password. More over, using a SSH-Key gives you the possibility to automate the login process, meaning you could create a script that will login to another [&hellip;]","og_url":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/","og_site_name":"IT-REACT","article_published_time":"2020-01-12T21:58:24+00:00","article_modified_time":"2025-07-13T07:18:00+00:00","og_image":[{"width":1080,"height":299,"url":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg","type":"image\/jpeg"}],"author":"Ioan Penu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ioan Penu","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#article","isPartOf":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/"},"author":{"name":"Ioan Penu","@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"headline":"Generate and install SSH-keys on Linux and Windows","datePublished":"2020-01-12T21:58:24+00:00","dateModified":"2025-07-13T07:18:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/"},"wordCount":619,"commentCount":2,"publisher":{"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"image":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg","keywords":["putty","rsa-key","ssh","ssh-key"],"articleSection":["Linux","Windows"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/","url":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/","name":"Generate and install SSH-keys on Linux and Windows - IT-REACT","isPartOf":{"@id":"https:\/\/www.it-react.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#primaryimage"},"image":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg","datePublished":"2020-01-12T21:58:24+00:00","dateModified":"2025-07-13T07:18:00+00:00","breadcrumb":{"@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#primaryimage","url":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg","contentUrl":"https:\/\/www.it-react.com\/wp-content\/uploads\/2020\/01\/jason-d-7BhTfoKsheQ-unsplash-scaled-e1578866266793.jpg","width":1080,"height":299,"caption":"Photo by Jason D on Unsplash"},{"@type":"BreadcrumbList","@id":"https:\/\/www.it-react.com\/index.php\/2020\/01\/12\/create-and-install-ssh-keys-on-linux-and-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.it-react.com\/"},{"@type":"ListItem","position":2,"name":"Generate and install SSH-keys on Linux and Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.it-react.com\/#website","url":"https:\/\/www.it-react.com\/","name":"it-react","description":"Ctrl\u2022Alt\u2022Automate","publisher":{"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.it-react.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.it-react.com\/#\/schema\/person\/bf08cffeb4b02ee6baff5d56ab17c8f0","name":"Ioan Penu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g","caption":"Ioan Penu"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/2a2a1b6be0f322a113eea11669895227e284c6091424d65be6c3c706c2822975?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":96,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":4254,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/posts\/228\/revisions\/4254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/media\/231"}],"wp:attachment":[{"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.it-react.com\/index.php\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}