{"id":546,"date":"2016-07-11T14:30:19","date_gmt":"2016-07-11T18:30:19","guid":{"rendered":"http:\/\/easy-admin.ca\/?p=546"},"modified":"2018-01-31T20:32:45","modified_gmt":"2018-02-01T01:32:45","slug":"sftp-connection-error-received-unexpected-end-of-file-from-sftp-server","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2016\/07\/11\/sftp-connection-error-received-unexpected-end-of-file-from-sftp-server\/","title":{"rendered":"SFTP Connection Error Received unexpected end-of-file from SFTP server"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-547 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/proftpd.jpg\" alt=\"proftpd\" width=\"856\" height=\"617\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/proftpd.jpg 856w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/proftpd-300x216.jpg 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/proftpd-768x554.jpg 768w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><\/p>\n<p>Here are the steps to fix the issue of sFTP\u00a0&#8211; Received unexpected end-of-file &#8211; error when trying to connect to the sFTP\u00a0Server.<\/p>\n<p><strong>First step is to edit your sshd_config file.<\/strong><\/p>\n<p># nano \/etc\/ssh\/sshd_config<\/p>\n<p><strong>Then scroll down until you see this line:<\/strong><\/p>\n<pre class=\"code-pre \"><code># Subsystem sftp \/usr\/lib\/openssh\/sftp-server<\/code><\/pre>\n<p>*\u00a0 Do not worry if you don&#8217;t find this line, just add this code at the end of your sshd_config file.<\/p>\n<figure id=\"attachment_566\" aria-describedby=\"caption-attachment-566\" style=\"width: 554px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/easy-admin.ca\/my_uploads\/2016\/07\/sshd-edit.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-566 size-large\" title=\"SFTP Connection Error Received unexpected end-of-file\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/sshd-edit-554x1024.jpg\" alt=\"SFTP Connection Error Received unexpected end-of-file\" width=\"554\" height=\"1024\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/sshd-edit-554x1024.jpg 554w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/sshd-edit-162x300.jpg 162w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/sshd-edit-768x1419.jpg 768w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/07\/sshd-edit.jpg 774w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><figcaption id=\"caption-attachment-566\" class=\"wp-caption-text\">SFTP Connection Error Received unexpected end-of-file<\/figcaption><\/figure>\n<pre class=\"code-pre \"><code>Subsystem sftp internal-sftp<\/code><\/pre>\n<p><em><strong>Now restart SSHD!<\/strong><\/em> and try to connect to your sFTP\u00a0Server.<\/p>\n<p><em><strong>et voil\u00e0!<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are the steps to fix the issue of sFTP\u00a0&#8211; Received unexpected end-of-file &#8211; error when trying to connect to the sFTP\u00a0Server. First step is to edit your sshd_config file. # nano \/etc\/ssh\/sshd_config Then scroll down until you see this line: # Subsystem sftp \/usr\/lib\/openssh\/sftp-server *\u00a0 Do not worry if you don&#8217;t find this line, &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2016\/07\/11\/sftp-connection-error-received-unexpected-end-of-file-from-sftp-server\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SFTP Connection Error Received unexpected end-of-file from SFTP server<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}