{"id":5981,"date":"2026-02-11T11:33:17","date_gmt":"2026-02-11T17:33:17","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5981"},"modified":"2026-02-11T11:33:26","modified_gmt":"2026-02-11T17:33:26","slug":"downloading-files-from-ubiquiti-radio-sh-usr-libexec-sftp-server-not-found","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/downloading-files-from-ubiquiti-radio-sh-usr-libexec-sftp-server-not-found\/","title":{"rendered":"Downloading files from Ubiquiti radio (sh: \/usr\/libexec\/sftp-server: not found)"},"content":{"rendered":"\n<p>SFTP and rsync do not work on Ubiquiti radios.  When you attempt to SFTP, you receive the error:<\/p>\n\n\n\n<pre class=\"wp-block-code has-dark-gray-background-color has-background\"><code class=\"\">sh: \/usr\/libexec\/sftp-server: not found<\/code><\/pre>\n\n\n\n<p>We can however use SCP with the -O option, which tells SCP to use the legacy SCP protocol, for file transfer instead of SFTP.  The following command will download the radio config.<\/p>\n\n\n\n<pre class=\"wp-block-code has-dark-gray-background-color has-background\"><code class=\"\">scp -O ubnt@192.168.1.20:\/tmp\/system.cfg .\/<\/code><\/pre>\n\n\n\n<p>If you want to download an entire directory, or the entire OS for that matter, you can use the <code>-r<\/code> flag for SCP.  The following command will download all the files in the <code>\/tmp<\/code> directory.<\/p>\n\n\n\n<pre class=\"wp-block-code has-dark-gray-background-color has-background\"><code class=\"\">scp -O -r ubnt@192.168.1.20:\/tmp .\/<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SFTP and rsync do not work on Ubiquiti radios. When you attempt to SFTP, you receive the error: We can however use SCP with the -O option, which tells SCP to use the legacy SCP protocol, for file transfer instead &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/downloading-files-from-ubiquiti-radio-sh-usr-libexec-sftp-server-not-found\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129],"tags":[528,642,1184,306,341,221,131,974],"class_list":["post-5981","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","tag-airmax","tag-airos","tag-rsync","tag-scp","tag-sftp","tag-ssh","tag-ubiquiti-2","tag-ui"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5981"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5981\/revisions"}],"predecessor-version":[{"id":6028,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5981\/revisions\/6028"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}