Questions tagged [remote]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

How do I resume editing file using ssh on a remote server after I lost my internet connection

I am using emacs on a remote server in which I use ssh to connect to. My internet is sometimes unstable and admist working on the file my connection will break and the file I am working on will be ...
Abdulaziz Kamil's user avatar
0 votes
0 answers
32 views

How to use connection-local-set-profiles to set inferior-ess-r-program when on using ESS over TRAMP?

This is a similar question to this other that remains unanswered. I am doing some work in the R language with the ess package on emacs on a remote computer to which I connect via tramp/ssh. The remote ...
aramirezreyes's user avatar
0 votes
0 answers
62 views

With tramp, how to use a remote-shell that contains spaces in the path?

I'm using Linux and I'm trying to tramp into a Windows machine. I'm trying to set the remote-shell option of tramp because tramp's default of /bin/sh doesn't work for a Windows remote host. I'd like ...
John Smith Optional's user avatar
0 votes
0 answers
42 views

Using tramp with "RemoteCommand"

I would like to tramp into a compute node of an HPC cluster. That requires an ssh connection to a login node and then using srun to request an interactive session. If using a terminal, all I need is ...
Daniel's user avatar
  • 3,593
0 votes
1 answer
21 views

ctrl + pgdn doesn't work with ssh

my .emacs.d/init.el has this : (global-set-key (kbd "C-<prior>") 'backward-page) (global-set-key (kbd "C-<next>") 'forward-page) It works fine on my machine but when ...
ychaouche's user avatar
  • 207
0 votes
0 answers
57 views

How to automatically convert between remote and local file names?

I have /local/laptop/dir mounted in my Docker container at /container/path. In Emacs tramp terms, it is /docker:container-id:/container/path. This also comes up when the user ssh to a remote system ...
pedz's user avatar
  • 375
0 votes
0 answers
245 views

Run pre-commit hooks when using magit, poetry, and tramp

This is an emacs & magit version of the following question, with an added twist. https://stackoverflow.com/questions/72839263/access-python-interpreter-in-vscode-version-controll-when-using-pre-...
q.undertow's user avatar
0 votes
2 answers
65 views

Right Control key problem when using Emacs remotely - Emacs thinks it's `C-M-`

I'm doing some remote work using Azure & Bastion to access a customer site. The problem is that in this context, with Emacs, my right Ctrl key doesn't work normally. What it's doing instead is ...
Sapient Fridge's user avatar
0 votes
1 answer
64 views

org-table, fetch a specific cell from all tables in a file

Summary of the problem Hey guys, I am currently keeping track of the stocks I buy and sell in org mode using tables. I have N different tables in a given file, each table representing a transaction. ...
slindten's user avatar
  • 101
2 votes
1 answer
185 views

Tramp ignores remote paths, no matter what

I run Emacs 27.1 in a Windows 10 environment, and I use tramp via plinkx for remote editing. I don't have diff installed locally, and I don't have the privileges to do it, so I'd like to avail of the ...
Daniele's user avatar
  • 647
3 votes
1 answer
367 views

How can I set the ls program dired uses only for local directories

I have set the ls program dired uses via (setq insert-directory-program "gls")) (so that I can specify --group-directories-first in dired-listing-switches). Trouble is when I browse a ...
halloleo's user avatar
  • 1,311
1 vote
0 answers
175 views

How to speed up tramp with ivy

I use ivy for file and buffer completion. As soon as I have one (dired) buffer which gets its content via tramp from a (slow) remote server all buffer and file selection commands become very slow even ...
halloleo's user avatar
  • 1,311
1 vote
1 answer
194 views

Load right version of Git while connecting to remote

I am currently working on a remote using Lmod for handling modules. I want to use Magit with the repositories on this remote, but the default system version of Git is 1.x. However, Git 2.18 is ...
Giulio Centorame's user avatar
1 vote
1 answer
175 views

Use variable in reference with remote in Org-table

I have one table called GRADING containing names and points entered by hand, and another table (FOO) containing the grading scheme. Is there a simple formula which allows to lookup the number of ...
Nre's user avatar
  • 153
0 votes
1 answer
42 views

Copy files from share Windows network folders?

CentOS, Emacs 27.2 In local network have Windows machine with name someWindowsHost. This machine share folder \shared\some_windows_folder. And if I want to copy some files from this share folder I ...
a_subscriber's user avatar
  • 3,906
1 vote
1 answer
42 views

Tramp with Dired produces unwanted //DIRED// line

Connected via Tramp to an old remote system, when I list a directory using Dired, I get: /plink:[email protected]:/tmp: total used in directory 549 available 114.7 MiB drwxrwxrwt 3 root ...
feklee's user avatar
  • 1,049
3 votes
3 answers
117 views

Dired+ doesn’t work on old remote system

When connected to an old remote system with Tramp 2.4.3.27.1, the buffer shows no files. With tramp-verbose set to 6, I looked at the Tramp debug buffer, then found (anonymized): 13:27:21.657267 tramp-...
feklee's user avatar
  • 1,049
1 vote
1 answer
569 views

Different folder for .emacs (not HOME)

My company's I.T. department has assigned our HOME directory to a network server. With the COVID-19 pandemic we are now using VPN to connect to the company's network. Having to to go through VPN to ...
Thomas Matthews's user avatar
1 vote
1 answer
542 views

gdb over ssh via tramp fails (but gdb-gud works?)

I am running into an issue where the gdb command fails over tramp. The remote host is a simple linux box I am accessing via ssh. Even when I run emacs without my init file it still happens. Emacs 27....
dvonn42's user avatar
  • 13
1 vote
1 answer
116 views

Tell ESS to use a different R program when on a Tramp remote session

I'm trying to configure ESS to use a different R program path when I'm on a remote session. Now, every time I ssh into the hpc cluster I use, I set the variable inferior-ess-R-program to /weird/path/...
apprentice's user avatar
2 votes
1 answer
550 views

Org Mode - Use remote table reference in constants

In https://orgmode.org/manual/References.html remote references are mentioned. Also there are constants for a local environment of a table. I would like to retrieve the value for a constant from the ...
Zelphir Kaltstahl's user avatar
0 votes
1 answer
123 views

Use tramp to play remote videos on the local

I use tramp to access my phone through termux and locates the Movies directory /ssh:termux:/storage/emulated/0/Movies: total 162M Superbook - In The Beginning - Season 1 Episode 1 - Full ...
Wizard's user avatar
  • 1,241
0 votes
1 answer
403 views

Is it possible to use Emacs to read mail using IMAP without downloading them?

I have found that Emacs + mu4e + offlineimap can deal with reading emails from a remote server. However, in this case, what I understand is that the emails are copied locally. Having mailboxes with ...
Miso's user avatar
  • 3
3 votes
1 answer
354 views

Preview images, and PDFs inside a SSH terminal session or inside emacsclient session via SSH?

I work remotely to Linux servers, writing R scripts with ESS. Rstudio works well if I have a fast and stable GUI-based remote desktop connection to the server. Rstudio server also works OK if I have ...
biocyberman's user avatar
0 votes
1 answer
173 views

Throttle transient-mark-mode highlighting?

When I'm using remote X forwarding to run X toolkit emacs and I press C-SPC and move the cursor around, things get very slow. The emacs profiler says all the time is spent in line-move-visual, but I ...
Joseph Garvin's user avatar
0 votes
1 answer
1k views

resizing frame by window manage under AnyDesk disassociates emacs buffers' dimensions

I'm trying a new (to me) remote desktop tool AnyDesk (v.5.5.4). I'm attaching to Ubuntu18 system at work from a Ubuntu19 system at home. When I resize an emacs frame with the mouse, the menu bar, ...
rjs's user avatar
  • 11
0 votes
1 answer
287 views

Running Emacs through X2Go, the bidirectional clipboard does not work, even though it works for other programs

Being in home-office due to the Corona outbreak, I am using Emacs and other programs through X2Go. I am also running a terminal through GNU Screen in a MinTTY window, because scrolling the terminal ...
kdb's user avatar
  • 1,561
0 votes
1 answer
78 views

Automate delete content of remote org mode file!

Linux Mint 19.3 Emacs 26.3 Dired+ I use Google drive. To connect I use rclone. As result I success connect to my google drive. In dired mode I open to.do.org file in Google's drive Edit file and ...
a_subscriber's user avatar
  • 3,906
1 vote
1 answer
140 views

Org-mode table recalculation with a remote() formula using calc?

Can I make table2 automatically recalculate a remote() formula when I modify data in table1? I have the below tables and the first table is automatically recalculated when I press TAB (thanks to the "...
Sergiu Elmi's user avatar
0 votes
1 answer
151 views

Why does emacs on a remote computing cluster behave differently depending on how the cluster is accessed?

I use SSH to work on a Linux computer cluster, emacs is my preferred text editor there. My local computer is a Windows 10 machine. If I use PuTTY to access the cluster remotely, when I run emacs, it ...
Jack Boyle's user avatar
3 votes
2 answers
2k views

Tramp hangs in "Waiting for prompts from remote shell"

new emacs user here. I'm trying to get tramp to work but can't figure out what's wrong. I do: M-x councel-tramp select /ssh:myserver But I just get "Waiting for prompts from remote shell" and it ...
Pablo's user avatar
  • 61
0 votes
0 answers
429 views

tramp hanging on remote fish shell despite tramp-remote-shell being /bin/sh

I can't connect via Tramp to a remote machine since switching to using fish as my default shell. However I have the tramp-remote-shell set for "/bin/sh" but this seems to be only used for interactive ...
stsquad's user avatar
  • 4,626
1 vote
1 answer
408 views

How do I use tramp to launch a remote PowerShell?

I'm trying to launch a PowerShell on a remote Windows system using tramp. So far all I've been able to do is start a PowerShell inside Emacs on the local (Windows) machine. What is the connection ...
gknauth's user avatar
  • 131
0 votes
1 answer
870 views

Tramp with ssh not asking for password - too many authentication failures

I would like to use tramp to login to a remote server via SSH. It used to work effortlessly, but somehow it does not even ask me for a password any longer and tries wildly to login with I guess keys ...
Zelphir Kaltstahl's user avatar
0 votes
1 answer
1k views

How to access (remote) MS Windows shared directory or files in Emacs25 running on Ubuntu 18.04

My question has already been asked here. However, the solution provided there didn't work for me. Through Ubuntu "Files" I am able to access the samba share with smb://DOMAIN;USER@IP_ADDRESS/...
Amit Tendulkar's user avatar
1 vote
0 answers
75 views

Folder navigation on remote windows machine can't see folders with spaces

I've been trying to navigate folder structures on a remote Windows machine with Cygwin installed, but I can't seem to navigate to folders which contain a space in them. Emacs claims that "File no ...
strange's user avatar
  • 81
4 votes
2 answers
893 views

How to eliminate excessive filesystem accesses that are slow over sshfs?

I am trying to make Emacs work faster over sshfs. It is currently quite slow in opening files, saving files, and sometimes when starting editing. I used sshfs's debugging mode to track the ...
gmr's user avatar
  • 143
0 votes
2 answers
2k views

Remote machine: Your terminal lacks the ability to clear the screen or position the cursor

Linux Mint 18.1 (64 bit) Xfce, Emacs 25.3 If I want to connect(via ssh) to remote Linux macnine I do next step: Open terminal ssh -oStrictHostKeyChecking=no [email protected] As result I ...
user8542613's user avatar
1 vote
1 answer
214 views

Tramp FTP cant connect. tramp-file-name-handler: Host name must not match method "ftp"

I am trying to connect ftp using tramp I am using C-x C-f /ftp:[email protected] I get an error message in the mini buffer: tramp-file-name-handler: Host name must not match method "...
kevzettler's user avatar
1 vote
2 answers
691 views

Tramp: Cannot Save File

I am new to tramp and I am trying to edit a file stored in a remote server. I connect to the file through C-x C-f /ssh:username@host:path_to_file/myfile.m. And on my init.el I have the options: (setq ...
Guilherme Salomé's user avatar
2 votes
0 answers
4k views

ssh - Pseudo-terminal will not be allocated because stdin is not a terminal

Windows 10 (64 bit), Emacs 25.1 If I want to remote connect by ssh to UNIX machine (Ubuntu) from my local machine (Windows 10) I do the next step: Run cmd Execute the next command ssh -...
Alex's user avatar
  • 135
12 votes
2 answers
3k views

Use sudo while editing over SSH?

I'm using the C-x C-f option to use SSH to edit a file. The file I'm editing requires my SSH user to use sudo. When I start editing the file it says read-only. How can I remotely edit files ...
Philip Kirkbride's user avatar
1 vote
0 answers
133 views

lines are mixed up when running emacs remotely

When I ssh onto a remote server, and then open emacs on that server, and attempt to edit, I often experience many issues with the display. For example, when I move my cursor around the file using C-...
shimao's user avatar
  • 163
2 votes
0 answers
42 views

Emacs how to run a command that requires a default editor remotely from with local Emacs? [duplicate]

I frequently use TRAMP to edit files on a remote machine but I also want to use Emacs for remote configuration and management. On any system there are some commands that run with the VISUAL and ...
Startec's user avatar
  • 1,344
0 votes
1 answer
81 views

Can not connect to remote MS Windows machine from local MS Windows machine

Windows 10 (64 bit), Emacs 25.1 I want to connect from my local Windows machine to remote Windows machine. But Tramp does not support connecting a remote MS Windows host from a local MS Windows host....
Alex's user avatar
  • 791
0 votes
1 answer
387 views

Connect to remote Windows machine: Network error: Connection timed out

Windows 10 (64 bit), Emacs 25.1 When I want to connect to remote Windows machine (via VPN) I use the next steps: Start application OpenVPN and success connect Start msc (Remote Desktop Connection) ...
Alex's user avatar
  • 791
2 votes
1 answer
386 views

How to rsync/fetch/download the folder open with ssh/tramp

I work in a folder on the server, peyote2 in this case. I can edit files there etc, we all know that. However I have there a pdb file (RNA 3D structure) that to view I have to download it to my ...
Marcin Magnus's user avatar
3 votes
1 answer
805 views

Fix compilation mode paths when compiling in container or remotely

Recently the scenario of editing project source code locally but building the project remotely on another machine (for example inside a Docker container or an Amazon Web Services host) is becoming ...
Make Mark's user avatar
  • 141
4 votes
1 answer
1k 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 /[email protected]:/home/user) (which should have the ...
halloleo's user avatar
  • 1,311
4 votes
1 answer
2k views

Magit equivalent of 'git remote add origin [email protected]:user/project.git'?

For those who are trying to determine how to do this here is the answer. Yes the answer is in the docs! I missed it on the first pass. Then looked at questions such as the below, trying b u and ...
orion's user avatar
  • 805