2

I'm trying to connect and edit files on my openwrt box. But every time I tried Emacs shows me a blank buffer.

C-x C-f /ssh:user:192.168.200.1:/etc/config/network RET

the filesystem on openwrt

cat /proc/filesystems 
nodev   sysfs
nodev   rootfs
nodev   ramfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   debugfs
nodev   securityfs
nodev   sockfs
nodev   bpf
nodev   pipefs
nodev   devpts
    squashfs
nodev   jffs2
nodev   overlay

edit: Hi I did a typo on the original question.

I've use this /ssh:[email protected]:/etc/config/network

same error.

If I use /ssh:[email protected]:/etc/config/ I get into dired mode but when I select the file again blank buffer.

Doing the same on the terminal outside emacs all works.

7
  • Hi I did a typo on the original question. I've use this /ssh:[email protected]:/etc/config/network same error. If I use /ssh:[email protected]:/etc/config/ I get dired mode but when I select the file blank buffer
    – Gabriel
    Oct 23, 2019 at 21:25
  • Do you get the same result if you use SCP instead of SSH? e.g. C-x C-f /scp:[email protected]:/etc/config/network RET
    – Melioratus
    Oct 23, 2019 at 21:44
  • Doing SCP it gives me the file as expected.
    – Gabriel
    Oct 23, 2019 at 22:19
  • But no with SSH and I wonder why?
    – Gabriel
    Oct 23, 2019 at 22:20
  • Not sure but I have a couple guesses. I’ve noticed the same symptoms when files are large or compressed but I’ve also wondered if this was I use cygwin + emacs. I don’t recall if I’ve seen the symptoms outside of cygwin.
    – Melioratus
    Oct 23, 2019 at 22:29

2 Answers 2

0

It is the wrong syntax. Use /ssh:[email protected]:/etc/config/network

2
  • I wonder why he just gets a blank buffer, tho.
    – Stefan
    Oct 23, 2019 at 19:17
  • He will get an error message. The blank buffer represents a non-existing (new) file. Oct 23, 2019 at 22:18
0

Try switching to different protocol, e.g. ssh to scp

For example,

/ssh:username@hostname:/path/

would become

/scp:username@hostname:/path/

Tip: Another advantage of switching from ssh to scp is improved uploading and downloading times for larger files. However I don’t think you can use scp with the TRAMP multi-hops feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.