I have an Asus DSL-AC68U router. I can easily ssh to it:
ssh router
After having configured the proper options in .ssh/config:
Host router
Hostname ddnshostname
User myuser
KexAlgorithms +diffie-hellman-group1-sha1
In short, I already can access the router via SSH and FTP but I'd like the security and ease of use of SSHFS (or similar!). However, I seem not to be able to mount stuff with SSHFS:
$ sshfs -o sshfs_debug router:/tmp/home/root/ testmount/ -d [1]
SSHFS version 2.6
FUSE library version: 2.9.5
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-2> <casatrieste> <-s> <sftp>
sh: /opt/libexec/sftp-server: not found
remote host has disconnected
I found out this is because sftp-server in my router seems to be displaced or missing. However, I cannot find neither sftp_server nor ssh_config anywhere in the router using find / | grep ssh_config
.
It seems like I'm missing the sftp-server
package completely. Is there any other way to allow me to use SSHFS? I can already access the router via ftp, but I'd like to mount the file system remotely.
I should probably install openssh-sftp-server
. However this means I should install optware and I'd prefer to avoid that.
How can I mount SSHFS folders from this router remotely?
rsync
to fetch a copy of the remote, edit it locally, thenrsync
it back. Or use an editor likeemacs
which has atramp
mode which lets you edit/browse files remotely pretty transparently. – meuh Mar 18 '16 at 17:10