{"id":2959,"date":"2020-02-06T18:02:29","date_gmt":"2020-02-06T18:02:29","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=2959"},"modified":"2020-02-08T15:03:09","modified_gmt":"2020-02-08T15:03:09","slug":"connecting-to-server-using-ssh-keys","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=2959","title":{"rendered":"Connecting to server using SSH Keys"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Connecting to a remote server using the Public Key Authentication method<\/h2>\n\n\n\n<p>Once your session is properly set up, that means your Private SSH key was <a href=\"\/map-private-ssh-key-to-a-winscp-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"successfully mapped (opens in a new tab)\">successfully mapped<\/a>, then you can connect to your remote device just double clicking the session, see animation below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"504\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/WinSCP-connecting-to-a-remote-server-using-the-Public-Auth-method.gif\" alt=\"\" class=\"wp-image-2960\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step by step screenshots<\/h2>\n\n\n\n<p>As usual we\u2019re including each and every screenshot for you to see the taken steps in more detail.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-00.png\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"386\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-00.png\" alt=\"\" class=\"wp-image-2975\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-00.png 559w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-00-300x207.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/a><figcaption>Verify that the SSH Private Key is already mapped to the current WinSCP session<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-01.png\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-01.png\" alt=\"\" class=\"wp-image-2962\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-01.png 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-01-300x205.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><figcaption>Open your WinSCP session<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-02.png\"><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"439\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-02.png\" alt=\"\" class=\"wp-image-2963\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-02.png 633w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-02-300x208.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><figcaption>Type the &#8220;passphrase&#8221; you created when generating the SSH keys<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-03.png\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"334\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-03.png\" alt=\"\" class=\"wp-image-2961\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-03.png 751w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/02\/connecting-using-pub-key-auth-method-03-300x133.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><figcaption>Done! You are now connected to your remote device<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WinSCP a powerful tool<\/h2>\n\n\n\n<p>I started using WinSCP when working with Cisco products, dealing with ISO files on the ESXi datastore, basically using it as an SFTP client, but never paying attention at the multiple tasks that can be done with this tool, here a short list of them:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Navigating Linux folders and taking advantage of bookmarks<\/li><li>Upload and Download files (from Windows to Linux and vice-versa)<\/li><li>Opening and Editing text files<\/li><li>Changing Ownership and Properties<\/li><li>Rename, Delete, Move, create files, links and shortcuts<\/li><\/ul>\n\n\n\n<p>All of them using a friendly GUI (Graphical User Interface), awesome!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connecting to a remote server using the Public Key Authentication method Once your session is properly set up, that means your Private SSH key was successfully mapped, then you can connect to your remote device just double clicking the session, see animation below. Step by step screenshots As usual we\u2019re including each and every screenshot &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=2959\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Connecting to server using SSH Keys&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2959","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2959"}],"version-history":[{"count":8,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2959\/revisions"}],"predecessor-version":[{"id":3137,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2959\/revisions\/3137"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}