{"id":2205,"date":"2020-01-27T16:36:43","date_gmt":"2020-01-27T16:36:43","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=2205"},"modified":"2020-02-05T14:08:26","modified_gmt":"2020-02-05T14:08:26","slug":"winscp-new-session","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=2205","title":{"rendered":"WinSCP new session"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">Public-key authentication<\/h2>\n\n\n\n<p>Due that at this point in our LAMP journey we are still working on a LAB, we\u2019re not going to pay much attention to security measures, authentication via <strong>username\/password<\/strong> is good enough for a LAB environment, but you must know that there is a more secure option, and in fact this option is nowadays the standard when connecting to\u00a0a <strong>VPS<\/strong>\u00a0(Virtual Private Server), we are talking about the \u201c<strong>Public-Key Authentication<\/strong>\u201d method, where we make use of a pair of SSH keys Public\/Private, this particular subject is covered in <a rel=\"noreferrer noopener\" aria-label=\"this article (opens in a new tab)\" href=\"\/ssh-public-and-private-keys\/#Public_key_authentication\" target=\"_blank\">this article<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to create a new folder on WinSCP<\/h2>\n\n\n\n<p>We&#8217;ve already done <a href=\"\/securecrt-new-session\/#How_to_create_a_new_folder_on_SecureCRT\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">the same task<\/a> (folder creation) on our Terminal Emulator <strong>SecureCRT<\/strong>, now we&#8217;re going to do it on <strong>WinSCP<\/strong>, as you&#8217;ll see the steps are just a little bit different but the outcome is exactly the same, we&#8217;re gonna get a brand new folder to star organizing sessions.<\/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\/01\/WinSCP-1.create_a_new_folder.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-1.create_a_new_folder.jpg\" alt=\"\" class=\"wp-image-2208\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-1.create_a_new_folder.jpg 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-1.create_a_new_folder-300x205.jpg 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><figcaption>WinSCP creating a new folder<\/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\/01\/WinSCP-2.new_folder_name.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"423\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-2.new_folder_name.jpg\" alt=\"\" class=\"wp-image-2224\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-2.new_folder_name.jpg 626w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-2.new_folder_name-300x203.jpg 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><figcaption>WinSCP new folder&#8217;s name<\/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\/01\/WinSCP-3.new_folder_created.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"423\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-3.new_folder_created.jpg\" alt=\"\" class=\"wp-image-2215\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-3.new_folder_created.jpg 626w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-3.new_folder_created-300x203.jpg 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><figcaption>WinSCP new folder has been created<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to create a new session on WinSCP<\/h2>\n\n\n\n<p>In order to create a new session you must go to the top of the folder&#8217;s tree and click the icon named &#8220;New Site&#8221; and then complete the IP Address and credentials.<\/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\/01\/WinSCP-4.new-site.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-4.new-site.jpg\" alt=\"\" class=\"wp-image-2227\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-4.new-site.jpg 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-4.new-site-300x205.jpg 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><figcaption>WinSCP new site<\/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\/01\/WinSCP-5.save-new-site.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-5.save-new-site.jpg\" alt=\"\" class=\"wp-image-2229\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-5.save-new-site.jpg 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-5.save-new-site-300x205.jpg 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><figcaption>WinSCP save new site<\/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\/01\/WinSCP-6.save-new-site-in-a-folder.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-6.save-new-site-in-a-folder.jpg\" alt=\"\" class=\"wp-image-2231\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-6.save-new-site-in-a-folder.jpg 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-6.save-new-site-in-a-folder-300x205.jpg 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><figcaption>Start typing the name of the folder<\/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\/01\/WinSCP-7.new-site-saved-on-folder.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-7.new-site-saved-on-folder.jpg\" alt=\"\" class=\"wp-image-2232\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-7.new-site-saved-on-folder.jpg 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-7.new-site-saved-on-folder-300x205.jpg 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><figcaption>And that&#8217;s it the new session is saved on the folder<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to open a WinSCP session<\/h2>\n\n\n\n<p>Opening a WinSCP session is quite simple once you&#8217;ve selected the session you must hit the &#8220;Login&#8221; button located at the bottom of the window.<\/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\/01\/WinSCP-8.login-button..jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"438\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-8.login-button..jpg\" alt=\"\" class=\"wp-image-2237\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-8.login-button..jpg 641w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-8.login-button.-300x205.jpg 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Save Host Key<\/h2>\n\n\n\n<p>The first time that you login into a remote machine you must accept the Host Key, see below screenshot.<\/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\/01\/WinSCP-9.add-host-key.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"436\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-9.add-host-key.jpg\" alt=\"\" class=\"wp-image-2239\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-9.add-host-key.jpg 498w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-9.add-host-key-300x263.jpg 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/a><figcaption>WinSCP first log into a new remote computer<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Type username and password<\/h2>\n\n\n\n<p>Here once again I want to clarify that because we&#8217;re working on a LAB environment we&#8217;re going to use the &#8220;root&#8221; account, but on a real world scenario, for instance when connecting to a VPS (Virtual Private Server), the best practices dictate that you must use another user with &#8220;sudo&#8221; privileges, that is a common user with administrator rights.<\/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\/01\/WinSCP-10-type-username.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"317\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-10-type-username.jpg\" alt=\"\" class=\"wp-image-2242\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-10-type-username.jpg 392w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-10-type-username-300x243.jpg 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><figcaption>Type username<\/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\/01\/WinSCP-11-type-password.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"302\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-11-type-password.jpg\" alt=\"\" class=\"wp-image-2243\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-11-type-password.jpg 377w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-11-type-password-300x240.jpg 300w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/a><figcaption>enter your password<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Successful connection<\/h2>\n\n\n\n<p>Immediately after the authentication process, in this case using your credentials (username\/password) you will see the main WinSCP Window where you will do most of the things, please notice that on the left side are the folders which belong to your local computer, most of the times, a Windows machine, on the right side you will see the remote computer\/server in out case our linux machine, our CentOS 7.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-12-successful-login.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-12-successful-login-1024x426.jpg\" alt=\"\" class=\"wp-image-2244\" width=\"768\" height=\"320\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-12-successful-login-1024x426.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-12-successful-login-300x125.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-12-successful-login-768x320.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-12-successful-login.jpg 1081w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>WinSCP successful connection<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to disconnect<\/h2>\n\n\n\n<p>Disconnecting from your remote computer\/server is quite easy, you must right click the correct TAB and from the drop down menu select &#8220;Disconnect&#8221;, as you can see in the follow image there is also a shortcut for this action, it is &#8220;Shift+Ctrl+D&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-13-logout-disconnect.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-13-logout-disconnect-1024x426.jpg\" alt=\"\" class=\"wp-image-2246\" width=\"768\" height=\"320\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-13-logout-disconnect-1024x426.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-13-logout-disconnect-300x125.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-13-logout-disconnect-768x320.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-13-logout-disconnect.jpg 1081w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>WinSCP disconnect<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to close WinSCP<\/h2>\n\n\n\n<p>If you want to completely close WinSCP you must hit the button called &#8220;Close&#8221; located at the bottom of the window, this action will close all the windows.<\/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\/01\/WinSCP-14-logout-disconnect-close.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-14-logout-disconnect-close-1024x426.jpg\" alt=\"\" class=\"wp-image-2249\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-14-logout-disconnect-close-1024x426.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-14-logout-disconnect-close-300x125.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-14-logout-disconnect-close-768x320.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/WinSCP-14-logout-disconnect-close.jpg 1081w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Where to go next?<\/h2>\n\n\n\n<p>The tool I use the most when working with WinSCP is the Bookmark List, you can learn how to use it taking a look at the following article.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"\/winscp-bookmarks\/\">WinSCP bookmarks<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Public-key authentication Due that at this point in our LAMP journey we are still working on a LAB, we\u2019re not going to pay much attention to security measures, authentication via username\/password is good enough for a LAB environment, but you must know that there is a more secure option, and in fact this option is &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=2205\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WinSCP new session&#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-2205","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2205","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=2205"}],"version-history":[{"count":34,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2205\/revisions"}],"predecessor-version":[{"id":2816,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2205\/revisions\/2816"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}