I need a program that can manage files on a remote device running Linux using SCP. The remote device runs OpenWrt. On Windows there is a perfect one WinSCP. it is weird that there is no native program that can be used.
The program should be able to:
- list files
- copy and move files to/from the device and within the device.
- delete files on the device
- view and edit files
- change file permissions
I have found only one alternative, except using CLI and installing WinSCP with wine.
It is Midnight Commander with fish
. It works really poor. The problems are:
- It mixes up
~
on a remote device and on the computer. - It can't edit files. I can open and edit, but they are saved to a wrong place.
There is a lot of other annoying problems that makes it almost unusable. I gave up using mc
and now I am using pure shell on the remote device.
Please do not tell me that Nautilus, etc support these features. They don't!!!
Linux native file managers require SFTP that is not available on the remote device.
Maybe it is possible to get nautilus use SCP, but I did not find a way of doing it without changing sources.
THIS IS NOT A DUPLICATE !!!
I have a specific requirement that is not covered in the duplicate question.
If it is not possible on Ubuntu, then this could be an answer.
Update : The problem here is that openwrt does not support linux clients without installing the sftp server.
See https://wiki.openwrt.org/doc/howto/sftp.server
openwrt has no intention of resolving this, see https://trac.cyberduck.io/ticket/4161
So, from the first link, the solution , server side, is to install
openssh-sftp-server
You can then use any number of graphical clients or sshfs - see What is a program similar to WinSCP? and What is a program similar to WinSCP?
Alternate is to use winscp with wine
FAR Manager for Linux recently got support of SCP. Currently it has bugs but you may try.
To install from PPA
Then press Alt+F2 (you may need to disable "Run Application" hotkey). Select NetRocks and press Shift+F4 to create a new connection config.
Finally I got it working with the
mc
frombionic
Ubuntu repo.In
mc
select "Right Panel", then "Shell Connection" and type in the address. In my case it is[email protected]
.Enter the password when asked.
It seems that all is working, including view and edit. It didn't with older
mc
versions.Mount external server using
sshfs
After that, it is mounted to your filesystem, you can use any file browser of your choice.
Example:
To automate the process, add an entry in fstab