I use a commercial backup server to which I can copy and access files with scp, rsync and some other ways. I can also do ssh USER@SERVER COMMAND
for some commands, like ls
, quota
, rm
etc., but I am not allowed to start an interactive shell with ssh. Actually what happens if I do just ssh USER@SERVER
without COMMAND is that it gives some output and then waits for EOF and then quits.
It would be really nice to be able to access files on that server with Tramp in Emacs, but I don't get it to work, because even if I use methods like scp or rsync Tramp will also try to start an ssh session and then it gets stuck waiting for that EOF. (If I break it then I can see that failed communication in the buffer *code-conversion-work*
.)
Is there a way to use Tramp without an interactive shell? I think it would be possible for it to do what it needs to do with individual (allowed) commands, like ls, even though of course it would be less efficient to start a new session each time. But are there provisions for such a thing?