{"id":8420,"date":"2020-05-05T16:22:53","date_gmt":"2020-05-05T16:22:53","guid":{"rendered":"https:\/\/www.siliconhouse.net\/support\/?page_id=8420"},"modified":"2020-05-05T16:22:57","modified_gmt":"2020-05-05T16:22:57","slug":"how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server","status":"publish","type":"page","link":"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/","title":{"rendered":"How to Connect the WinSCP app to Backup all Data From Linux Server?"},"content":{"rendered":"\n<p>Silicon House&nbsp;is a complete solution provider for&nbsp;reseller hosting,&nbsp;dedicated servers&nbsp;and&nbsp;cloud servers. Our expertise is in implementing high availability, high performance and hybrid cloud \/ dedicated servers.Silicon House runs hundreds of servers serving 1000+ customers in more than 90+ countries.&nbsp; &nbsp;&nbsp;<br>In this session we are going to see, how to Connect the WinSCP app to Backup all Data From Linux Server.&nbsp; Please go through the below procedure,<br>First of all Need to download WinSCP software to your system using the below URL.<br>https:\/\/winscp.net\/eng\/download.php<\/p>\n\n\n\n<p>You can see a download link, Please click on it and download the installation package.<\/p>\n\n\n\n<p>Step 1: Once the download is completed, please proceed to install the software.<br>Step 2: License Agreement &gt; Click Accept<br>Step 3: Setup type &gt; Typical Installation (recommended)<br>Step 4: Initial user settings &gt; User interface style &gt; Commander<br>Step 5: Click Install<br>Step 6: Click Finish<\/p>\n\n\n\n<p>Once it is done then you can find an icon called &#8220;WinSCP&#8221; on your desktop. Open the program, &#8220;WinSCP&#8221; is installed.<\/p>\n\n\n\n<p>Host key pair generation :<br>To obtain your host key, please open winSCP Icon from your desktop.<\/p>\n\n\n\n<p>File protocol : SCP<br>Hostname : server IP<br>Port number : Server Port number<br>Username : root<br>Password : root password<br>Click Login<\/p>\n\n\n\n<p>After login &gt; Click on Session &gt; Server and protocol information &gt; You can see server host key fingerprints &gt; Find SHA-256 value and copy it<\/p>\n\n\n\n<p>So now you have obtained the Host key value. Use this key in your batch script.<\/p>\n\n\n\n<p>More Secure method<br>Login to server WHM &gt; Security Center &gt; Manage root\u2019s SSH Keys &gt; Generate a New Key<\/p>\n\n\n\n<p>Key Name (defaults to id_rsa): Enter the keyname as you wish<br>Key Password: Enter a password and make a note of it<br>Password (again):<br>Key Type: RSA<br>Key Size: 2048<\/p>\n\n\n\n<p>Click Generate key<\/p>\n\n\n\n<p>Go back &gt; Manage Authorization &gt; Authorize the key<\/p>\n\n\n\n<p>Under private keys &gt; View\/Download key straight to the key &gt; Enter the passphrase to convert the key to .ppk format<br>You will get a key format<br>Copy and paste it in a notepad as file.ppk format for all types<\/p>\n\n\n\n<p>To obtain your host key, please open winSCP Icon from your desktop.<\/p>\n\n\n\n<p>File protocol : SCP<br>Hostname : server IP<br>Port number : Server Port number<br>Username : root<br>Advanced &gt; SSH &gt; Authentication &gt; choose the private key file from your local system &gt; Click ok<br>Click Login<\/p>\n\n\n\n<p>After login &gt; Click on Session &gt; Server and protocol information &gt; You can see server host key fingerprints &gt; Find SHA-256 value and copy it<\/p>\n\n\n\n<p>So now you have obtained the Host key value. Use this key in your batch script.<\/p>\n\n\n\n<p>Using this private key in .ppk format, you will be able to login to the server via WinSCP in a more secure way. Once you have logged in, you can see the hostkey in winSCP format which you can use in your command to connect to the server.<\/p>\n\n\n\n<p>Copying of files from Linux Server to your Local Windows Desktop Machine using WinSCP:<br>Prepare the below windows batch file in your winSCP installation directory.<\/p>\n\n\n\n<p>For eg, C:\\Program Files (x86)\\WinSCP<\/p>\n\n\n\n<p>Open a Notepad, put the below command<\/p>\n\n\n\n<p>winscp.com \/ini=nul \/command ^<br>&#8220;open scp:\/\/root@ServerIP:Port\/ -hostkey=&#8221;&#8221;ssh-rsa 2048 Hostkeypair&#8221;&#8221;&#8221; ^<br>&#8220;get SOURCEDIRECTORY DESTINATIONDIRECTORY&#8221; ^<br>&#8220;exit&#8221;<\/p>\n\n\n\n<p>ServerIP defines IP of the server<br>Port defines Port number of the server<br>SOURCEDIRECTORY defines the directory or path where your backups are present. For eg, \/backup\/cpbackup\/weekly is where your weekly cpanel backups stored<br>DESTINATIONDIRECTORY defined the directory or path in your local system where the backup will be stored<\/p>\n\n\n\n<p>Eg code is mentioned below,<\/p>\n\n\n\n<p>winscp.com \/ini=nul \/command ^<br>&#8220;open scp:\/\/root@x.x.x.x:1269\/ -hostkey=&#8221;&#8221;ssh-rsa 2048 qISVJ4oOxnoEGlQp6HkKB7vNUMzTUFDc\/yV4OBZjlN0=&#8221;&#8221;&#8221; ^<br>&#8220;get \/backup\/test.txt* C:\\backup\\&#8221; ^<\/p>\n\n\n\n<p>&#8220;exit&#8221;<br>Save the notepad at your winscp installation directory (For eg, C:\\Program Files (x86)\\WinSCP), &#8216;Filename&#8217; &#8220;name.bat&#8221; and &#8216;save as type&#8217; choose &#8220;All files&#8221; &gt; Save<\/p>\n\n\n\n<p>Now in the directory where the batch file presents, double click on it. A command prompt will be opening, give the root password of the server (you can simply copy the password and right click). Automatically backup will be downloaded to your local system in the specified location.<\/p>\n\n\n\n<p>Important Note : Please maintain the basic security of your local system Latest OS, Windows firewall, Active Antivirus software etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Silicon House&nbsp;is a complete solution provider for&nbsp;reseller hosting,&nbsp;dedicated servers&nbsp;and&nbsp;cloud servers. Our expertise is in implementing high availability, high performance and<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-8420","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Connect the WinSCP app to Backup all Data From Linux Server?<\/title>\n<meta name=\"description\" content=\"SiliconHouse provides a linux dedicated server. In this session we are going to see\u00a0How to Connect WinSCP app to Backup all Data From Linux Server?\u00a0\" \/>\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.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Connect the WinSCP app to Backup all Data From Linux Server?\" \/>\n<meta property=\"og:description\" content=\"SiliconHouse provides a linux dedicated server. In this session we are going to see\u00a0How to Connect WinSCP app to Backup all Data From Linux Server?\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Silicon House - Reseller Hosting - Dedicated Servers - Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/siliconhouse.net\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-05T16:22:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@siliconhouse\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/\",\"url\":\"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/\",\"name\":\"How to Connect the WinSCP app to Backup all Data From Linux Server?\",\"isPartOf\":{\"@id\":\"https:\/\/www.siliconhouse.net\/support\/#website\"},\"datePublished\":\"2020-05-05T16:22:53+00:00\",\"dateModified\":\"2020-05-05T16:22:57+00:00\",\"description\":\"SiliconHouse provides a linux dedicated server. In this session we are going to see\u00a0How to Connect WinSCP app to Backup all Data From Linux Server?\u00a0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.siliconhouse.net\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Connect the WinSCP app to Backup all Data From Linux Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.siliconhouse.net\/support\/#website\",\"url\":\"https:\/\/www.siliconhouse.net\/support\/\",\"name\":\"Silicon House - Reseller Hosting - Dedicated Servers - Cloud\",\"description\":\"Reseller Hosting - Dedicated Servers - Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.siliconhouse.net\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.siliconhouse.net\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.siliconhouse.net\/support\/#organization\",\"name\":\"Silicon House\",\"url\":\"https:\/\/www.siliconhouse.net\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.siliconhouse.net\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/10\/siliconhouse-logo.png\",\"contentUrl\":\"https:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/10\/siliconhouse-logo.png\",\"width\":42,\"height\":40,\"caption\":\"Silicon House\"},\"image\":{\"@id\":\"https:\/\/www.siliconhouse.net\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/siliconhouse.net\",\"https:\/\/x.com\/siliconhouse\",\"https:\/\/www.youtube.com\/siliconhouse\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Connect the WinSCP app to Backup all Data From Linux Server?","description":"SiliconHouse provides a linux dedicated server. In this session we are going to see\u00a0How to Connect WinSCP app to Backup all Data From Linux Server?\u00a0","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.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Connect the WinSCP app to Backup all Data From Linux Server?","og_description":"SiliconHouse provides a linux dedicated server. In this session we are going to see\u00a0How to Connect WinSCP app to Backup all Data From Linux Server?\u00a0","og_url":"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/","og_site_name":"Silicon House - Reseller Hosting - Dedicated Servers - Cloud","article_publisher":"https:\/\/www.facebook.com\/siliconhouse.net","article_modified_time":"2020-05-05T16:22:57+00:00","twitter_card":"summary_large_image","twitter_site":"@siliconhouse","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/","url":"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/","name":"How to Connect the WinSCP app to Backup all Data From Linux Server?","isPartOf":{"@id":"https:\/\/www.siliconhouse.net\/support\/#website"},"datePublished":"2020-05-05T16:22:53+00:00","dateModified":"2020-05-05T16:22:57+00:00","description":"SiliconHouse provides a linux dedicated server. In this session we are going to see\u00a0How to Connect WinSCP app to Backup all Data From Linux Server?\u00a0","breadcrumb":{"@id":"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.siliconhouse.net\/support\/how-to-connect-the-winscp-app-to-backup-all-data-from-linux-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.siliconhouse.net\/support\/"},{"@type":"ListItem","position":2,"name":"How to Connect the WinSCP app to Backup all Data From Linux Server?"}]},{"@type":"WebSite","@id":"https:\/\/www.siliconhouse.net\/support\/#website","url":"https:\/\/www.siliconhouse.net\/support\/","name":"Silicon House - Reseller Hosting - Dedicated Servers - Cloud","description":"Reseller Hosting - Dedicated Servers - Cloud","publisher":{"@id":"https:\/\/www.siliconhouse.net\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.siliconhouse.net\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.siliconhouse.net\/support\/#organization","name":"Silicon House","url":"https:\/\/www.siliconhouse.net\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.siliconhouse.net\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/10\/siliconhouse-logo.png","contentUrl":"https:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/10\/siliconhouse-logo.png","width":42,"height":40,"caption":"Silicon House"},"image":{"@id":"https:\/\/www.siliconhouse.net\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/siliconhouse.net","https:\/\/x.com\/siliconhouse","https:\/\/www.youtube.com\/siliconhouse"]}]}},"_links":{"self":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/8420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/comments?post=8420"}],"version-history":[{"count":1,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/8420\/revisions"}],"predecessor-version":[{"id":8421,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/8420\/revisions\/8421"}],"wp:attachment":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/media?parent=8420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}