tramp

How can I use Emacs tramp to ssh to a remote host and edit a file as another user on an ad-hoc basis?

对着背影说爱祢 提交于 2019-11-29 13:13:44
问题 /multi used to work for me, now it's gone and I'm frustrated. What I want to do is, in my dream world: /myuser@remotehost:sudo:anotheruser:/some/path/to/file ...and have ido-mode work. The key thing here is that 'myuser', 'remotehost' and 'anotheruser' are all very ad-hoc, I use a huge array of remote hosts, often with different users and sudo-ing to a wide range of different users. What do I need to add and how can I test it without reloading emacs over and over? 回答1: As of this commit,

Emacs 24.3 for windows, Tramp byte-code: Couldn't find a proper `ls' command

微笑、不失礼 提交于 2019-11-29 11:42:52
问题 24.2 works well, but 24.3 bounded tramp got following error when open remote Linux system files or directories: "byte-code: Couldn't find a proper `ls' command" I open tramp trace and find that, all remote search path and file path are extend by something, adding a extra "c:" at the beginning. The results is that tramp can find neither command nor file I want to open. 16:04:51.768000 tramp-get-connection-property (7) # process-buffer nil 16:04:51.769000 tramp-set-file-property (8) # c:/bin

Originate edit of remote file using emacs tramp from ssh session

馋奶兔 提交于 2019-11-27 14:06:02
This is probably a somewhat out-of-wack question. I use tramp to edit remote files, but I also open several terminals ssh-ing to that remote machine as well for other works (I had problems running ssh shell inside emacs). Often times during the terminal work I would like to edit some file, and my current procedure is to copy the file name, and then use emacs tramp to open that file (after messing all around with getting the file path in the tramp format). This is way too much work for a quick edit and quite error prone in the path handling part. The question is: Can I execute some command in

How can I use Emacs Tramp to double hop ssh?

空扰寡人 提交于 2019-11-27 11:03:08
My campus only lets ssh access through a gateway server. So to access the cluster I am coding on I have to ssh to the gateway and then ssh to the machine I am working on. The connection is very slow at times and is frustrating to work on. I would love to use something like tramp which I understand would have the buffer open on my local machine and only talk through the network when I save to disk. I am not very familiar with tramp at all and struggling to get it to work, especially through the double hop. The documentation says this is accomplished through defining proxies in tramp, but I am

Using tramp with EmacsW32 and cygwin, possible?

徘徊边缘 提交于 2019-11-27 04:41:23
I have some trouble setting up Tramp with EmacsW32 and cygwin. I have configured emacs to use cygwin as shell using w32shell. I also set the HOME enviromental variable to c:/cygwin/home/myusername Problem is that tramp seems to hang and that no connection is made: "Tramp waiting for prompts for the new shell". I have tried to turn on debugging, but still only see this message. Looking forward to get some tips on this. Thank you. Take note of the cygwin-related information on the emacs wiki: http://www.emacswiki.org/emacs/TrampMode I don't use EmacsW32, but I do successfully use TRAMP over ssh

Emacs: Tramp doesn't work

家住魔仙堡 提交于 2019-11-27 03:15:48
I tried to open a remote file via Emacs via Tramp. (require 'tramp) (setq tramp-default-method "ssh") I get a message from Emacs Tramp: Waiting for prompts from remote shell Emacs hung and did not respond to any action after that Emacs was installed on Windows; the remote file was on a Linux machine. If the account you're connecting to uses some weird fancy shell prompt, then there is a good chance that this is what makes tramp trip. Log in as root, then enter PS1="> " (that's a normal, standard shell (ZSH, BASH, younameit) prompt, one that tramp will understand) then switch to the user

Open file via SSH and Sudo with Emacs

折月煮酒 提交于 2019-11-26 19:19:30
I want to open a file inside Emacs which is located on a remote server, with sudo powers on the server. I can open local files with sudo via Tramp like this: C-x C-f /sudo::/home/user/file But I want to use sudo on the server: C-x C-f /sudo::user@server/home/user/file But this gives me sudo powers on my local machine, it asks for my sudo password on the local machine. Is there a way to use sudo on the server? BTW: Emacs is not installed on the server As of Emacs 24.3, an analog of the old multi: syntax has been layered on top of the modern tramp-default-proxies-alist approach, meaning that you

How can I use Emacs Tramp to double hop ssh?

坚强是说给别人听的谎言 提交于 2019-11-26 17:58:27
问题 My campus only lets ssh access through a gateway server. So to access the cluster I am coding on I have to ssh to the gateway and then ssh to the machine I am working on. The connection is very slow at times and is frustrating to work on. I would love to use something like tramp which I understand would have the buffer open on my local machine and only talk through the network when I save to disk. I am not very familiar with tramp at all and struggling to get it to work, especially through

Originate edit of remote file using emacs tramp from ssh session

ぃ、小莉子 提交于 2019-11-26 16:36:20
问题 This is probably a somewhat out-of-wack question. I use tramp to edit remote files, but I also open several terminals ssh-ing to that remote machine as well for other works (I had problems running ssh shell inside emacs). Often times during the terminal work I would like to edit some file, and my current procedure is to copy the file name, and then use emacs tramp to open that file (after messing all around with getting the file path in the tramp format). This is way too much work for a quick

Using tramp with EmacsW32 and cygwin, possible?

本小妞迷上赌 提交于 2019-11-26 12:45:38
问题 I have some trouble setting up Tramp with EmacsW32 and cygwin. I have configured emacs to use cygwin as shell using w32shell. I also set the HOME enviromental variable to c:/cygwin/home/myusername Problem is that tramp seems to hang and that no connection is made: \"Tramp waiting for prompts for the new shell\". I have tried to turn on debugging, but still only see this message. Looking forward to get some tips on this. Thank you. 回答1: Take note of the cygwin-related information on the emacs