Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:nas:sftp.server [2023/01/17 06:08] – [OpenSSH compatibility] move to docs:guide-user:base-system:dropbear#extras vgaeteradocs:guide-user:services:nas:sftp.server [2023/03/04 11:21] – [Popular clients] stokito
Line 5: Line 5:
   * This how-to describes the method for setting up [[wp>SSH_File_Transfer_Protocol|SFTP]] server on OpenWrt.   * This how-to describes the method for setting up [[wp>SSH_File_Transfer_Protocol|SFTP]] server on OpenWrt.
   * It relies on [[docs:guide-user:base-system:dropbear|Dropbear]] and [[packages:pkgdata:openssh-sftp-server]] for secure authentication and file transfer.   * It relies on [[docs:guide-user:base-system:dropbear|Dropbear]] and [[packages:pkgdata:openssh-sftp-server]] for secure authentication and file transfer.
-  * You can use any suitable [[docs:guide-user:services:nas:sftp.server#references|SFTP client]] running natively on your OS.+  * You can use any suitable [[docs:guide-user:services:nas:sftp.server#popular_clients|SFTP client]] running natively on your OS.
  
 ===== Goals ===== ===== Goals =====
Line 13: Line 13:
  
 ===== Instructions ===== ===== Instructions =====
-Install the required packages.+The SSH File Transfer (SFTP) is a file transfer protocol that works over SSH. It's like SCP but has more features. 
 +For a basic usage the low level SCP may be enough but if you need, for example, to mount drive then use the SFTP. 
 + 
 +The vanilla OpenWrt out of the box has a small [[docs:guide-user:base-system:dropbear|Dropbear]] SSH server. 
 +But it doesn't support the SFTP and you need to install ''openssh-sftp-server'' package. 
 +The package comes from another OpenSSH server which is bigger but has more features and default on desktop systems like Ubuntu. 
 +Many [[docs:guide-user:installation:openwrt-as-stock-firmware|routers with OpenWrt as a stock firmware]] use it out of the box and the ''openssh-sftp-server'' is installed too. 
 +So for this routers you really don't need anything to do and just start using it. 
 + 
 +But if not then install the required package:
  
 <code bash> <code bash>
-# Install packages 
 opkg update opkg update
 opkg install openssh-sftp-server opkg install openssh-sftp-server
Line 25: Line 33:
  
 <code bash> <code bash>
-sftp://root@192.168.1.1/+sftp://root@openwrt.lan/
 </code> </code>
  
Line 48: Line 56:
  
 ===== Extras ===== ===== Extras =====
-==== References ==== +==== Popular clients ==== 
-Popular SFTP clients+  * Windows[[docs:guide-quick-start:sshadministration#winscp|WinSCP]] - an advanced GUI client. ''Proprietary'' 
-  * [[https://apps.gnome.org/app/org.gnome.Nautilus/|GNOME Files on Linux]] +  * Windows: [[https://www.farmanager.com/|FAR Manager]] - an advanced Norton Commander like file manager. Supports a plain SCP too. ''Proprietary'' 
-  * [[https://cyberduck.io/|Cyberduck on macOS]] +  * Linux, macOS, FreeBSD: [[https://github.com/elfmz/far2l|far2l]] - an open source version of the FAR. ''GPL-2'' 
-  * [[docs:guide-quick-start:sshadministration#winscp|WinSCP on Windows]]+  * Linux, macOS, FreeBSD: [[https://midnight-commander.org/|Midnight Commander]] - a Norton Commander like file manager. Supports a plain SCP too. ''GPL-3'' 
 +  * Linux: [[wp>GNOME_Files|GNOME Files]] or [[https://apps.kde.org/ru/konqueror/|KDE Konqueror]]. ''GPL-2'' 
 +  * Linux: [[https://wiki.gnome.org/Apps/DejaDup/Details|GNOME Déjà Dup]] - a backup and sync tool. ''GPL-3'' 
 +  * Windows, macOS, Linux, FreeBSD: [[https://rclone.org/|rclone]] - a command-line program to manage files on cloud storage. ''MIT'' 
 +  * macOS: [[https://cyberduck.io/|Cyberduck]] and [[https://mountainduck.io/|MountainDuck]]. ''GPL-3''. 
 +  * Android: [[https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore|X-plore File Manager]] 
 +  * Android TV, RapberryPI: [[https://kodi.tv|KODI]] a media player for TV. You can put a USB drive to a router and watch your photos, video and audio without any additional software. 
 +  * [[https://www.sftp.net/clients|SFTP Client]] list
  
 ==== Service discovery ==== ==== Service discovery ====
Line 58: Line 73:
  
 <code bash> <code bash>
-# Install packages 
 opkg update opkg update
 opkg install announce opkg install announce
 </code> </code>
  
 +See also [[docs:guide-developer:mdns|umdns Multicast DNS Daemon]]
  • Last modified: 2023/10/14 05:25
  • by vgaetera