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 | ||
| doc:howto:sftp.server [2015/12/28 15:00] – [SFTP server] probono | docs:guide-user:services:nas:sftp.server [2023/03/04 11:21] – [Popular clients] stokito | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SFTP server ====== | ====== SFTP server ====== | ||
| + | {{section> | ||
| - | Some clients, e.g. GNOME Files or [[https:// | + | ===== Introduction ===== |
| + | * This how-to describes the method for setting up [[wp> | ||
| + | * It relies on [[docs: | ||
| + | * You can use any suitable [[docs:guide-user: | ||
| - | # Enable sftp, work around https://trac.cyberduck.io/ | + | ===== Goals ===== |
| - | | + | * Transfer files to/from the router. |
| - | | + | |
| + | | ||
| - | 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. | + | ===== 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. | ||
| - | ===== Announce | + | The vanilla OpenWrt out of the box has a small [[docs: |
| + | But it doesn' | ||
| + | The package comes from another OpenSSH server which is bigger but has more features and default | ||
| + | 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: | ||
| - | If you would like to announce the service on the network using Bonjour/ | + | <code bash> |
| - | opkg install announce | + | opkg update |
| - | / | + | opkg install |
| - | | + | </ |
| - | + | ||
| - | announce will notice that openssh-sftp-server | + | ===== Testing ===== |
| + | Enter the following URL in your SFTP client. | ||
| + | |||
| + | <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 | ||
| + | </ | ||
| + | |||
| + | ===== 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 | ||
| + | |||
| + | <code bash> | ||
| + | opkg update | ||
| + | opkg install announce | ||
| + | </ | ||
| + | |||
| + | See also [[docs: | ||