{"id":10172,"date":"2023-03-08T10:46:41","date_gmt":"2023-03-08T10:46:41","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=10172"},"modified":"2026-02-26T14:02:44","modified_gmt":"2026-02-26T14:02:44","slug":"how-to-open-and-close-an-sftp-connection-to-a-remote-system","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/","title":{"rendered":"How to Open and Close an SFTP Connection to a Remote System"},"content":{"rendered":"\r\n<p>If you are unsure of how to open and close an SFTP connection to a remote system, we have you covered. Just check out the steps mentioned below to get all the information you need.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\">\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>Command<\/strong><\/td>\r\n<td><strong>Description<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>sftp remote-system<\/td>\r\n<td>Builds an sftp connection to a remote system.\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>sftp remote-system:file<\/td>\r\n<td>Copies the named file from the remote system.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>bye<\/td>\r\n<td>Quits the sftp session.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>help<\/td>\r\n<td>Lists all sftp commands.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>ls<\/td>\r\n<td>Creates lists of the contents of the remote working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>lls<\/td>\r\n<td>Creates lists of the contents of the local working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>pwd<\/td>\r\n<td>Shows the name of the remote working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>cd<\/td>\r\n<td>Changes the remote working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>lcd<\/td>\r\n<td>Changes the local working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>mkdir<\/td>\r\n<td>Creates a directory on the remote system.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>rmdir<\/td>\r\n<td>Deletes a directory on the remote system.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>get<\/td>\r\n<td>Copies a file from the remote working directory to the local working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>put<\/td>\r\n<td>Copies a file from the local working directory to the remote working directory.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>delete<\/td>\r\n<td>Deletes a file from the remote working directory.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/figure>\r\n\r\n\r\n\r\n<p>How to Open and Close an sftp Connection to a Remote System?<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Use this sftp command to open a connection to a remote system.<br \/>$ sftp remote-system<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>When the connection succeeds, there will be a prompt along with a confirmation message prompted.<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"2\">\r\n<li>Insert your password if asked.<br \/>Password: password<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>If your password is accepted by the sftp interface, you will have the (sftp&gt;) prompt and a confirmation message displayed. The commands provided by the sftp interface can be used now, including help.<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"3\">\r\n<li>Close the sftp connection.<br \/>sftp&gt; bye<\/li>\r\n<\/ol>\r\n","protected":false},"excerpt":{"rendered":"<p>If you are unsure of how to open and close an SFTP connection to a remote system, we have you covered. Just check out the steps mentioned below to get&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1398,1397],"class_list":["post-10172","post","type-post","status-publish","format-standard","hentry","category-general","tag-remote-system","tag-sftp-connection"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Open and Close an sftp Connection to a Remote System<\/title>\n<meta name=\"description\" content=\"In this article, we learn the best way to open and close an sftp connection to a remote system.\" \/>\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.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Open and Close an sftp Connection to a Remote System\" \/>\n<meta property=\"og:description\" content=\"In this article, we learn the best way to open and close an sftp connection to a remote system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-08T10:46:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:44+00:00\" \/>\n<meta name=\"author\" content=\"Serena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Serena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/\"},\"author\":{\"name\":\"Serena\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\"},\"headline\":\"How to Open and Close an SFTP Connection to a Remote System\",\"datePublished\":\"2023-03-08T10:46:41+00:00\",\"dateModified\":\"2026-02-26T14:02:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/\"},\"wordCount\":265,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Remote System\",\"sftp Connection\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/\",\"name\":\"How to Open and Close an sftp Connection to a Remote System\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2023-03-08T10:46:41+00:00\",\"dateModified\":\"2026-02-26T14:02:44+00:00\",\"description\":\"In this article, we learn the best way to open and close an sftp connection to a remote system.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Open and Close an SFTP Connection to a Remote System\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\",\"name\":\"Serena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"caption\":\"Serena\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/seema\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Open and Close an sftp Connection to a Remote System","description":"In this article, we learn the best way to open and close an sftp connection to a remote system.","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.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/","og_locale":"en_US","og_type":"article","og_title":"How to Open and Close an sftp Connection to a Remote System","og_description":"In this article, we learn the best way to open and close an sftp connection to a remote system.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2023-03-08T10:46:41+00:00","article_modified_time":"2026-02-26T14:02:44+00:00","author":"Serena","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Serena","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/"},"author":{"name":"Serena","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830"},"headline":"How to Open and Close an SFTP Connection to a Remote System","datePublished":"2023-03-08T10:46:41+00:00","dateModified":"2026-02-26T14:02:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/"},"wordCount":265,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Remote System","sftp Connection"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/","name":"How to Open and Close an sftp Connection to a Remote System","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2023-03-08T10:46:41+00:00","dateModified":"2026-02-26T14:02:44+00:00","description":"In this article, we learn the best way to open and close an sftp connection to a remote system.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-open-and-close-an-sftp-connection-to-a-remote-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"How to Open and Close an SFTP Connection to a Remote System"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830","name":"Serena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","caption":"Serena"},"url":"https:\/\/www.bodhost.com\/kb\/author\/seema\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/10172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=10172"}],"version-history":[{"count":5,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/10172\/revisions"}],"predecessor-version":[{"id":11631,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/10172\/revisions\/11631"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=10172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=10172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=10172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}