Questions tagged [tramp]

TRAMP is ‘Transparent Remote (file) Access, Multiple Protocol’ for editing remote files from Emacs.

Filter by
Sorted by
Tagged with
5
votes
1answer
551 views

Problem of starting a remote ipython console

I want to connect to remote ipython server, and follow the doc of the ipython, I start a ipython server in my server by ipython3 kernel -f ~/.ipython/kernel.json --pprint and I can start a ipython ...
3
votes
2answers
300 views

Closing emacs after TRAMP session is aborted

Sometimes i work on remote machine (or several) via TRAMP. However, sometimes sessions end in such a way they cannot be reopened later. In such situation, closing emacs results in unacceptable delays ...
0
votes
0answers
211 views

Tramp Ipython remote session: Problems with remote paths within code

Here's my setup: * Tramp on remote :PROPERTIES: :header-args: :dir /ssh:me@server.com|ssh:me@remote:/project/ :END: #+BEGIN_SRC ipython :session :results output drawer import pandas as pd data = pd....
1
vote
1answer
517 views

Tramp cannot load larger files (Invalid base64 data)

Files above about 5kb fail to load in tramp mode, with the error: tramp-file-name-handler: Invalid base64 data Loading smaller files works fine: Tramp: Inserting ‘/scp:server:small_file’... Tramp: ...
1
vote
1answer
386 views

Problem with FTP connections under Windows

Say I have an org-link like [[file:/ftp:anonymous@ftp.gnu.org:]] to an FTP site that I would like to open in dired. Unfortunately, when opening the link, the following is prompted: Opening FTP ...
1
vote
0answers
432 views

How to evaluate source code block on remote host?

I am working on windows machine. I have last org version (from February 2017). I have a remote host accessible by putty, where i have created org file of the following contents: #+TITLE C language ...
1
vote
1answer
414 views

Tramp problems with remote .bashrc

I'm using org-mode and doing an ssh multihop into a remote server from our faculty. :PROPERTIES: :header-args: :dir "/ssh:user@remote|ssh:user@remote2:/home/user" :END: #+BEGIN_SRC sh ls -al #+...
3
votes
1answer
800 views

MS Windows Tramp Remote Shell

I'm trying to open a remote shell after connecting to a machine using Tramp with the plink method on MS Windows. However every time I call shell it prompts me for 'Remote shell path' and suggests a ...
0
votes
1answer
1k views

How do I open an ansi-term on a remote server via Tramp?

I am editing a file on a remote server via Tramp, and I decide that I want to open up an ansi-term session on the remote server (as opposed to relying on shell-command). How do I do this? When I run ...
0
votes
1answer
47 views

Tramp configure can't find Emacs

I am trying to install a newer version (2.3.1) of Tramp than is currently running with my Emacs. When I run ./configure in tramp ala the instructions here, I get the error checking for 24.5.1... no ...
1
vote
2answers
172 views

Eshell and Dired are unable to extract port number from authinfo file

My default-directory is: /ssh:lawlist@12.34.567.89#2222:/home3/lawlist My .authinfo file contains: machine 12.34.567.89 login lawlist password abcdefg The above-combination works just fine. ...
1
vote
1answer
347 views

Remote shell (tramp) and login script

When I open a file via tramp on a remote machine and then start a shell with M-x shell I get an infinite loop because of my .cshrc file. I want to use a newer gcc version in CentOS so I have: set X="...
2
votes
1answer
276 views

Tramp using su fails with powerline prompt

I'm having a weird problem opening files as root. From emacs -Q, I issue (require 'tramp), customize tramp-verbose to 10, and try to open a file as root: C-x C-f /su::/etc/fstab. I'm then prompted for ...
1
vote
0answers
356 views

Can I write to a local file from a remote session using an Org-babel R code block?

I'd like to find a way to evaluate my R code remotely, but insert images into my local org file. I use R code blocks in my org files and insert images into the org file with something like this: #+...
4
votes
1answer
206 views

What is the equivalent of /sudo:root@localhost:/ in windows?

What is the easiest way to access files that require admin privilege in windows? I could see similar questions here and here. But I think this would be the right forum to find the best solution for ...
2
votes
2answers
137 views

Is there a way to save tramp targets and then incrementally filter them with Helm?

Say I want to open new connections to superlongusername1@superlongdomain1.org, superlongusername2@superlongdomain2.org and superlongusername3@superlongdomain3.org frequently, but I don't want to type ...
0
votes
1answer
124 views

Tramp connection history mysteriously appearing in .emacs.d

Today when reviewing changes to my .emacs.d before committing, I noticed a file called tramp. The contents of this file are as follows: ;; -*- emacs-lisp -*- <16/12/28 15:56:06 /home/ethan/.emacs....
6
votes
2answers
288 views

equivalent of unix “which” for exec-path?

I am trying to debug some bizarre issues with my exec-path settings. When I debug PATH in shell, the key tool is "which", which tells me the absolute path we resolve for a given binary, i.e. (701) ...
10
votes
1answer
2k views

Tramp unable to open some files

I just started using emacs last week and everything is going well so far. I am using tramp to edit remote files as follows: C-x C-f /ssh:user@server:/file/to/edit I login to the server using an ssh ...
2
votes
2answers
117 views

VM causing magit not to work

I have this error when I start emacs: File error: Searching for program, no such file or directory, git My Git is inside the VM in /usr/bin/git How can I point emacs to it? I'm using tramp and ...
0
votes
1answer
114 views

tramp-mode popping up while editing c/c++ files

recently, some strange behaviour popped up when editing c/c++ files in emacs: Whenever I want to write a comment, the first / I enter will open a buffer of type *tramp/spc C* with error message ssh:...
1
vote
1answer
101 views

How to change the buffer unification suffix for non local files?

When I open for example the file syslog.conf on four different hosts with Tramp the buffer names are syslog.conf syslog.conf<2> syslog.conf<3> syslog.conf<4> When I try to change the buffer ...
3
votes
0answers
1k views

Tramp keeps opening the connection

Once I connect to a remote computer using tramp. It connects but tramp keeps trying to open the connection. This is the output that is printed again and again. Tramp: Waiting for prompts from ...
0
votes
1answer
926 views

How do I edit files on an SFTP server, connecting from Mac OS X?

At work I'm connecting to a server that only accepts SFTP connections. I can connect from the command line just fine. I'd like to use TRAMP or Ange-FTP or something similar from within Emacs, but I'...
4
votes
1answer
862 views

Directory tracking in remote shell buffer

I use the shell command via C-u M-x shell to open a shell on a remote server by giving as default directory the path to the remote server (e.g /user@myserver.com:/home/user) (which should have the ...
2
votes
3answers
3k views

tramp and sudo: how to edit files under another account

On local machine, I am using the account as test1, and I could use the same account to login remote server. After login as test1 on remote server, I could run sudo su - oracle to change as oracle user,...
0
votes
2answers
342 views

Use remote git executable for magit and git-gutter when file system is SSHFS

How can I use a remote git executable for all git operations when accessing a file via SSHFS? I mount a remote system's git repo via SSHFS on my local computer. The git repo is medium-sized with ...
1
vote
1answer
303 views

emacs tramp: how to input a password and additional verification?

When I manually login into remote server, it first needs to input password, and then input some youbikey like the following prompt. Password: (after I input password correctly, then it will show ...
2
votes
1answer
434 views

edit a file on remote server using an existing session(by clone it)

I am able to clone a session after configure the configure file under .ssh cat .ssh/config host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p ServerAliveInterval 60 After I connect to the ...
2
votes
1answer
297 views

How to execute emacs commands in background

When executing some time consuming commands like magit-status or using scp to transfer files, then Emacs freezes and waits for return. Is there any way I can tell Emacs to run those commands in the ...
10
votes
2answers
2k views

Magit doesn't recognise git repo through ssh connection

I'm using ssh to connect to a remote server. On the server there is a git repo called MRFLSSVM. However, when I execute magit-status on: /ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/ Magit asks me ...
3
votes
1answer
896 views

cant connect with TRAMP (tramp-file-name-handler: Couldn’t find local shell prompt for /bin/sh)

I have a weird issue in emacs with TRAMP. i can ssh via M-x ssh to a machine (zlap) from within emacs with no issue. yet when i try to use C-x C-f (find file) it hangs after i enter the passphrase. ...
3
votes
1answer
556 views

Using sql-sqlite via TRAMP

I want to use sql-sqlite on a remote database file via TRAMP. According to this website it should be possible, but I cannot get it to work. I visit the remote directory with Dired and then invoke sql-...
1
vote
1answer
36 views

Narrowing on Tramp Buffers Only When Using helm-buffers-list

I'd like to close all Tramp buffers in one fell swoop. Is it possible to narrow on Tramp buffers only when invoking helm-buffers-list? I've tried various suggestions offered in Helm Help, but cannot ...
3
votes
2answers
104 views

Soft link local file to a remote file

I use emacs on different boxes and I want to share some files between them. The canonical examples would be gnus-startup-file and remember-data-file. I can set the files to remote locations (like, e....
2
votes
1answer
388 views

Bookmarking remote directories (tramp+sudo)

I have to connect to remote computers through ssh. I'm using tramp (C-x d /sshx:user@myhost|su:myhost:/mydirectory) and I can sudo as root on directories in this machine. As it is very convenient, I ...
2
votes
1answer
451 views

Tramp hangs on 'Sending password' whenever ESS is active

Tramp has been hanging on 'Sending password' for me whenever I try to use it. This includes the simplest test case of C-x C-f /sudo::/etc/hosts. After some trial-and-error with my .emacs, it looks ...
1
vote
1answer
170 views

Include host in buffer name for all files opened with TRAMP

I frequently use TRAMP with emacs to edit files remotely. However, I sometimes have files open from both my production and development server. When I have the same file open on both servers, TRAMP ...
1
vote
3answers
536 views

Interactive SSH in Emacs

So far I've been using Moba Xterm on Windows to connect via ssh to remote linux machines on my network, but I'd like to switch to Emacs. However, just running an eshell or shell buffer and trying to ...
1
vote
1answer
165 views

Can connect TRAMP with m-x ssh but can't with anything else (org code blocks, C-x C-f, etc.)

I have a very strange issue. I have no idea how to debug. TRAMP hangs every time I issue it via C-x C-f (and choose ssh), when I try to execute a org code block: :tangle: /zeltak@aaa.zzz.yyy.xxx:/...
3
votes
1answer
530 views

Disable remote file cleanup in recentf?

When using recentf with tramp, recentf would clean up its file list including all remote files, which takes a lot of time when the Internet is bad. How can I ask recentf to not cleanup remote files, ...
2
votes
1answer
251 views

Load a large TAGS file from a remote host at a Windows machine

I run Emacs locally on my Windows machine, but edit everything remotely, via tramp & plink (PuTTY's implementation of ssh). This all works just fine, but, as I found out today, TAGS files for ...
2
votes
1answer
518 views

Help me to fix my tramp (ssh/scp) workflow

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 ...
5
votes
1answer
1k views

Executing remote commands with TRAMP with a single SSH connection

I'm able to use TRAMP fine for reading/writing files on a remote server. I only have to login to the server the first time I open a file, and from then on I can open files without being prompted to ...
2
votes
3answers
646 views

loading tramp overrides tramp-remote-path customization back to default value

I have customized tramp-remote-path in my .emacs.d/init.el with (custom-set-variables '(tramp-remote-path (quote (tramp-own-remote-path)))) but when tramp is loaded the value of tramp-...
2
votes
2answers
230 views

file-truename and tramp

Is these a function that behaves like file-truename on local files, but does not add the /protocol:host: prefix on remote files? Currently if I run (file-truename "./file.ext") while in a remote ...
5
votes
5answers
6k views

Tramp: Waiting for prompts from remote shell

I added two new lines to my .bashrc so that Bash can find my Go programs: GOROOT=/Users/jay/work PATH=$PATH:$GOROOT/bin But as a result, when I launch Emacs, Emacs hangs for several minutes and I ...
0
votes
2answers
128 views

change default tramp path for finding files

I found the following code here, (defun sudo-find-file (file-name) "Like find file, but opens the file as root." (interactive "FSudo Find File: ") (let ((tramp-file-name (concat "/sudo::" (...
1
vote
1answer
501 views

Emacs tramp “args out of range” too often, how to recover connection automatically?

I have tramp configured to work automatically with SSH key and all, but I am having this message too often: byte-code: Args out of range: #<buffer *tramp/ssh gs*>, 60, 14056 To solve it ...
0
votes
2answers
166 views

auth-password-store for ftp over tramp

When accessing remote ftp server with tramp C-x C-f /ftp:user@host#port/ tramp asks me for password. I also use auth-password-store to store passwords in a pass-compatibale fashion, that is, host is ...