tramp

Passwords in Emacs tramp mode editing

北慕城南 提交于 2019-12-03 10:16:45
I'm using emacs tramp mode to remotely edit files over ssh. The problem is that every time I save the file I'm editing I have to enter my user password. I find that very annoying. How can I write my password only once / editing session? Ah, from the tramp docs on password caching you can set: (setq password-cache-expiry nil) which requires the package password-cache.el . Also, in the tramp sources, it mentions reading the ssh-agent(1) man page, which shows how to set it up so that you don't have to re-enter passwords (inside, or outside of Emacs): There are two main ways to get an agent set up

Running pyflakes remotely with flymake and tramp in emacs?

冷暖自知 提交于 2019-12-03 08:49:22
问题 I'm trying to use flymake to run pyflakes, as suggested here This works fine for local files, and almost works with remote files with a bit of tweaking, but I'm left with a problem where flymake/pyflakes 'modifies' the buffer when it runs (although nothing actually seems to change), which renders it a bit useless in practice (e.g. saving a file runs flymake which immediately modifies the buffer again). Here's what I did to almost get it working: Installed pyflakes on the remote box.

In Emacs, how do I figure out which package is loading tramp?

和自甴很熟 提交于 2019-12-03 07:20:45
I have a strange interaction with tramp and cygwin-mount (I think: Emacs: Tab completion of file name appends an extra i:\cygwin ). Because of this, I want to disable tramp. I'm unable to find anything in my .emacs which is loading tramp explicitly. I can see "Loading tramp..." when I hit a tab in the find-file minibuffer. I'd like to figure out what package is causing the loading of tramp and disable that. How do I go about doing this? I tried searching for (require 'tramp) but couldn't find anything interesting. The only other option I can think of is to comment out bits of my .emacs one-by

emacs tramp over an unreliable connection

偶尔善良 提交于 2019-12-03 04:48:06
问题 I want to run R on a remote box under a local Emacs (I do not want to run Emacs on the remote box). I can run R on a remote host using TRAMP: (let ((default-directory "/user@remote:~")) (R)) and everything works fine except that when the connection to remote is lost, R dies. This is no good because this means that I have to re-load all the data into R after restarting it, which takes time. Is it possible to tell TRAMP to use a persistent terminal? (GNU Screen or tmux or Mosh or dtach) See

Running pyflakes remotely with flymake and tramp in emacs?

不羁的心 提交于 2019-12-02 22:44:33
I'm trying to use flymake to run pyflakes, as suggested here This works fine for local files, and almost works with remote files with a bit of tweaking, but I'm left with a problem where flymake/pyflakes 'modifies' the buffer when it runs (although nothing actually seems to change), which renders it a bit useless in practice (e.g. saving a file runs flymake which immediately modifies the buffer again). Here's what I did to almost get it working: Installed pyflakes on the remote box. Customized my tramp-remote-process-environment variable so that pyflakes could be found in its PATH Used a

emacs tramp over an unreliable connection

╄→гoц情女王★ 提交于 2019-12-02 17:19:44
I want to run R on a remote box under a local Emacs (I do not want to run Emacs on the remote box). I can run R on a remote host using TRAMP : (let ((default-directory "/user@remote:~")) (R)) and everything works fine except that when the connection to remote is lost, R dies. This is no good because this means that I have to re-load all the data into R after restarting it, which takes time. Is it possible to tell TRAMP to use a persistent terminal? ( GNU Screen or tmux or Mosh or dtach ) See also emacs-devel thread tramp:sshx:(screen|tmux) . Here is how to use ESS with R running in a remote

Emacs Tramp ssh double hop

僤鯓⒐⒋嵵緔 提交于 2019-12-01 06:04:35
Could somebody please help me setup Emacs Tramp to do a double hop? I want to work on machine2.abc.def.edu to which I can connect only through machine1.abc.def.edu. My username is myname, on both machines same. I've tried to add .emacs: (add-to-list 'tramp-default-proxies-alist '("\\`machine2\\.abc\\.def\\.edu\\'" "\\`myname\\'" "/ssh:machine1\\.abc\\.def\\.edu:")) This is my best guess interpretation of what's in the manual. Then I do: C-x C-f /ssh:machine2.abc.def.edu or: C-x C-f /ssh:rsuhada@machine2.abc.def.edu But both give: ssh: Could not resolve hostname ssh: nodename nor servname

Emacs Tramp ssh double hop

旧街凉风 提交于 2019-12-01 04:13:37
问题 Could somebody please help me setup Emacs Tramp to do a double hop? I want to work on machine2.abc.def.edu to which I can connect only through machine1.abc.def.edu. My username is myname, on both machines same. I've tried to add .emacs: (add-to-list 'tramp-default-proxies-alist '("\\`machine2\\.abc\\.def\\.edu\\'" "\\`myname\\'" "/ssh:machine1\\.abc\\.def\\.edu:")) This is my best guess interpretation of what's in the manual. Then I do: C-x C-f /ssh:machine2.abc.def.edu or: C-x C-f /ssh

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-30 13:28:00
/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? Chris Withers As of this commit , TRAMP supports ad-hoc multiple hops again. Roughly speaking, you use it like this: /ssh

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

青春壹個敷衍的年華 提交于 2019-11-30 08:29:19
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 file-directory-p nil 16:04:51.770000 tramp-get-file-property (8) # c:/usr/bin file-directory-p undef ...