Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:nas:sftp.server [2022/04/22 14:24] – [Announce on the network] colo | docs:guide-user:services:nas:sftp.server [2023/03/04 11:21] – [Popular clients] stokito | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== OpenSSH compatibility ====== | ||
| - | As of OpenSSH 9.0, the standard openssh scp(1) client [[https:// | ||
| - | |||
| ====== SFTP server ====== | ====== SFTP server ====== | ||
| - | Some clients, e.g. GNOME Files or [[https://cyberduck.io|Cyberduck]] on the Mac, [[https:// | + | {{section> |
| + | |||
| + | ===== Introduction ===== | ||
| + | * This how-to describes the method for setting up [[wp> | ||
| + | * It relies on [[docs: | ||
| + | * You can use any suitable | ||
| + | |||
| + | ===== Goals ===== | ||
| + | * Transfer files to/ | ||
| + | * Secure file transfer operations. | ||
| + | * Support OS specific clients. | ||
| + | |||
| + | ===== Instructions ===== | ||
| + | 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: | ||
| + | But it doesn' | ||
| + | The package comes from another OpenSSH server which is bigger but has more features and default on desktop systems like Ubuntu. | ||
| + | Many [[docs: | ||
| + | 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> | ||
| Line 10: | Line 29: | ||
| </ | </ | ||
| - | Now you can use sftp clients such as GNOME Files or Cyberduck to connect to the OpenWrt system. Note that no additional startup scripts are required since all of that is handled by dropbear which is most likely already present on your system. | + | ===== Testing ===== |
| + | Enter the following URL in your SFTP client. | ||
| - | ===== Announce on the network | + | <code bash> |
| - | If you would like to announce the service on the network using Bonjour/ | + | sftp:// |
| + | </ | ||
| + | |||
| + | ===== Troubleshooting | ||
| + | Collect | ||
| <code bash> | <code bash> | ||
| + | # Restart services | ||
| + | / | ||
| + | |||
| + | # Log and status | ||
| + | logread -e dropbear; netstat -l -n -p | grep -e dropbear | ||
| + | |||
| + | # Runtime configuration | ||
| + | pgrep -f -a dropbear | ||
| + | |||
| + | # Persistent configuration | ||
| + | uci show dropbear | ||
| + | ls -l / | ||
| + | ls -l $(opkg files openssh-sftp-server | grep -e ^/) | ||
| + | </ | ||
| + | |||
| + | ===== Extras ===== | ||
| + | ==== Popular clients ==== | ||
| + | * Windows: [[docs: | ||
| + | * Windows: [[https:// | ||
| + | * Linux, macOS, FreeBSD: [[https:// | ||
| + | * Linux, macOS, FreeBSD: [[https:// | ||
| + | * Linux: [[wp> | ||
| + | * Linux: [[https:// | ||
| + | * Windows, macOS, Linux, FreeBSD: [[https:// | ||
| + | * macOS: [[https:// | ||
| + | * Android: [[https:// | ||
| + | * Android TV, RapberryPI: [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Service discovery ==== | ||
| + | You may want to provide service discovery for clients supporting Bonjour/ | ||
| + | |||
| + | <code bash> | ||
| + | opkg update | ||
| opkg install announce | opkg install announce | ||
| </ | </ | ||
| - | | ||
| - | The '' | ||
| + | See also [[docs: | ||