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 [2020/08/31 22:52] – [SFTP server] vgaetera | docs:guide-user:services:nas:sftp.server [2023/03/04 11:21] – [Popular clients] stokito | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 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 | ||
| + | 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 7: | 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> |
| + | sftp:// | ||
| + | </ | ||
| + | ===== Troubleshooting ===== | ||
| + | Collect and analyze the following information. | ||
| + | |||
| + | <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 | ||
| + | </ | ||
| - | If you would like to announce the service on the network using Bonjour/ | + | See also [[docs:guide-developer: |
| - | opkg install announce | + | |
| - | / | + | |
| - | / | + | |
| - | + | ||
| - | announce will notice that openssh-sftp-server is present and will announce the sftp service on the network. | + | |