I'm relatively new to tramp and despite being certain that it offers an elegant solution to my needs, I wasn't able to find one thus far. Let me briefly describe my workflow:
I connect to a server via tramp via ssh:user@host:path/ and there I usually edit a given text file. Commonly I have to upload a new document to the same file from my local machine. To achieve this, I (and this is the part I want to fix) open a separate eshell buffer in emacs and copy the file via scp to user@host:path/ . I then (which - again - is very undesirable) use this eshell buffer to connect (via ssh) a third time to the server to change the permissions of this newly uploaded file.
Clearly, this workflow is ridiculously inefficient and in desperate need of improvement. Can someone help?
I'd also like to disclaim that I searched for relevant questions on this side and found
- Tramp/Dired transfers files inline over ssh instead of using scp externaly,
- Executing remote commands with TRAMP with a single SSH connection and
- remote tramp eshell session changes to localhost.
However, I wasn't able to derive an answer of my question from them - probably due to the lacking knowledge on my part.