Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [ssh]

is the secure shell program that encrypts network communications over unsecured networks.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How to work with a remote jupyter kernel using emacs-ein?

i have a local customized emacs with the emacs ein package. I am able initiate a jupyter kernel locally (via emacs or via the terminal) and start an interactive jupyter notebook session. However, I ...
Olmo's user avatar
  • 123
0 votes
0 answers
39 views

MIT-MAGIC-COOKIE error Emacs terminals

I get Invalid MIT-MAGIC-COOKIE-1 key while I try to open an x11() window using R from within Emacs. I try both vterm, eshell, shell and ssh and all return the same error. If I try the same from ...
Riccardo's user avatar
  • 133
1 vote
1 answer
34 views

Tramp scp access without interactive ssh shell

I use a commercial backup server to which I can copy and access files with scp, rsync and some other ways. I can also do ssh USER@SERVER COMMAND for some commands, like ls, quota, rm etc., but I am ...
pst's user avatar
  • 276
1 vote
2 answers
100 views

connect with tramp, sudo and edit a file as root in GCP

I have a virtual machine in Google Cloud Compute where I can ssh/login as my own user, and then sudo to root in order to access files used by a systemd service. I would like to edit these files ...
dmvianna's user avatar
  • 392
0 votes
1 answer
56 views

Use Flycheck over Tramp

I have a running docker containing simple C source file makefile and compile_commands file generated by bear. What I want to do is to make Flycheck-clangcheck lint my C code on the fly. However when I ...
tvishy's user avatar
  • 1
2 votes
1 answer
182 views

Doom Emacs does not correctly render the colors on ssh terminal

What happened? This is a problem that I was never able to solve and I always try to switch on another editor when I am coding on my remote machine. However, I think that I solution should be somewhere ...
vincenzopalazzo's user avatar
0 votes
2 answers
51 views

sourcing .bashrc when starting emacs [duplicate]

I need to start ssh-agent so that I can use tramp within Emacs. However, if I start emacs via the start up menu, the environment (i.e. bashrc) does not seem to be sourced whereas when I start emacs ...
CD86's user avatar
  • 563
0 votes
1 answer
66 views

How can I org-store-link when ssh sudo hopping?

I open the file like this, with hopping: C-x C-f /ssh:b0ef@ximian|sudo:ximian:/etc/nixos/configuration.nix RET If I call org-store link, I get this: [[file:/sudo:root@ximian:/etc/nixos/configuration....
Jason Hunter's user avatar
0 votes
1 answer
111 views

When using ssh in term-mode, how do I get the remote system's hostname for emacs?

I regularly use term-mode then ssh into a remote machine to run bash commands. I want to display the remote machine's hostname in my modeline. I added the relevant code for the modeline but I'm having ...
Matt's user avatar
  • 3
0 votes
0 answers
49 views

reopen-with-sudo command that works through tramp?

I have tried to define this command: (defun etc-reopen-with-sudo () (interactive) (let* ((vec (tramp-dissect-file-name (buffer-file-name (current-buffer)))) (method (tramp-file-name-method ...
Joseph Garvin's user avatar
0 votes
1 answer
43 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
55 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
30 views

"Tramp failed to connect" to any ssh server (gpg as an ssh agent)

Is anyone able to use Tramp with a gpg smart card or a gpg agent that manages ssh socket (so acts as an ssh agent)? For me it fails with file-error "Tramp failed to connect. If this happens ...
Daniel Krajnik's user avatar
0 votes
1 answer
168 views

Why does TRAMP not work when ssh to a normal user?

Question I setup a SSH server on a Gentoo machine. I copied my identity file (public key) to the server under both the /root/.ssh and /home/i/.ssh (assuming the username is i). And I edit my /etc/...
k0takuk1's user avatar
0 votes
1 answer
27 views

On tramp shell, commands like `head`, `tail`, `man`, `git log`, etc... output all text at once instead of prompting

I use tramp-shell for ssh to another machine. Setup as follows: (defun spawn-shell (name) "Invoke shell test" (interactive "MName of shell buffer to create: ") (pop-to-buffer ...
Noah's user avatar
  • 121
1 vote
1 answer
531 views

How to enable 24-bit color emacs on terminal when opening it from a remote machine?

Both of my computers, says A and B, have a terminal that supports 24-bit color. Opening emacs on both terminals also show the 24-bit colors, e.g. executing M-x list-colors-display will list 556 ...
nougako's user avatar
  • 137
1 vote
1 answer
471 views

Emacs/Tramp fails to connect with ssh key equiped with a passphrase

I have problem connecting via ssh using Tramp in Emacs on MS-Windows whenever the private ssh key I use is configured with a passphrase. Here's the problem : I. What works : On the command line ssh -...
Thibault Cimic's user avatar
2 votes
2 answers
433 views

How can I use Tramp's SSH on Windows 10 with the native ssh.exe?

Windows 10 has its own ssh.exe. I can use ssh.exe fine within eshell, but not for Tramp, e.g. /ssh:user@host:/tmp. Is there any way to enable Tramp with the built-in ssh (OpenSSH_for_Windows_8.1p1, ...
Zeta's user avatar
  • 1,103
1 vote
0 answers
34 views

How to (temporarily) override the ssh executable that TRAMP uses?

For reasons that I don't want to get into, for some ssh connections I need to use an executable different from the one that TRAMP uses by default. Therefore, I am looking for a convenient way to ...
kjo's user avatar
  • 3,247
0 votes
1 answer
25 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
2 votes
1 answer
297 views

how to execute sudo su --login username command with TRAMP

I have this weird setup that once I log onto our server with the sudo uat command, I will be logged in with my own user dadinn@uat. I have set up .ssh/config so that uat is really an alias for ...
Daniel Dinnyes's user avatar
0 votes
0 answers
33 views

C-c C-, not working in SSH terminal but it is bound

The function org-insert-structure-template is bound to C-c C-,. I can confirm that when search that function via M-x and seeing the shortcut behind the function name. But I use Emacs (from Debian 11) ...
buhtz's user avatar
  • 729
0 votes
1 answer
521 views

How to use tramp with an SSH config file?

I have an ssh config file generated by vagrant ssh that looks like this Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no ...
BigBoy1337's user avatar
0 votes
1 answer
298 views

Stop Emacs from reconnecting to SSH when working with a stale TRAMP buffer

After leaving Emacs open overnight, the SSH connection expires. However, the buffers that I left open, are still useful, and I want to continue working with them. However, any action I do with Emacs (...
xelibrion's user avatar
  • 101
0 votes
2 answers
90 views

After establishing a SSH connectia via eshell, "dumb" terminal can't run Emacs. Also vi does not work properly. How to solve this with Emacs?

After running eshell, I was trying to establish a SSH connection and do some changes on the server: ssh [email protected] The connection was successfully established (the real IP address was ...
Pedro Delfino's user avatar
0 votes
1 answer
58 views

Tramp problem during writing files through plink containing over 2900 characters using emacs on windows

I get a weird bug and I am struggling to fix it. The problem occur only when writing files over 2900 characters through ssh with tramp. The file is correctly sent in remote machine, but tramp-perl-...
samd854587's user avatar
3 votes
1 answer
428 views

Tramp mode - Copying files

when copying files in tramp mode via ssh with Dired I am not able to do anything else in Emacs. Emacs is just not usable till this process has finished. Is there any way to use Emacs while it copies ...
cptflint's user avatar
  • 131
1 vote
0 answers
155 views

Tramp into gcloud compute engine instance using custom `gssh` and `tunnel-through-iap`

I have a couple of GCP projects which has IAP enabled on them and have compute engine instances which only have private IPs. So the only way to ssh into them is to use gcloud compute ssh with tunnel-...
Pannu's user avatar
  • 111
0 votes
1 answer
237 views

Tramp ssh connection inside eshell with gpg key

In my dotfiles I have the following setup to make ssh connections using my gpg key: .bash_profile: export GPG_TTY=$(tty) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch ...
Reza's user avatar
  • 103
1 vote
0 answers
561 views

Using typescript-language-server through tramp can't find servers for typescript-mode

I am trying to work remotely on a typescript project, with lsp-mode and tramp, through SSH. I followed the documentation on lsp-mode web page to set up a remote client. Here is my config: (use-package ...
meguli's user avatar
  • 377
2 votes
1 answer
1k views

Emacs find-file over SSH is too slow to connect

I am trying to connect to a remote server through SSH to edit some projects. I do C-x C-f and then /ssh:username:ip:. It displays a password prompt. I type my password and press RET. It takes very ...
meguli's user avatar
  • 377
1 vote
0 answers
296 views

Tramp can't connect with ssh: Wrong type argument: "number-or-marker-p undefined"

I'm trying to edit files and execute commands on my virtual GNU/Hurd machine. However, TRAMP asks for password, connects when correct password given, and finally says: ~ $ cd /ssh:[email protected]....
Akib Azmain Turja's user avatar
0 votes
0 answers
59 views

How to use TRAMP over tor?

I am not able to use TRAMP mode over tor. When I try to use something like M-x ssh://blabloblu.onion it just doesn't work. tramp-signal-hook-function: Tramp failed to connect. If this happens ...
Felipe's user avatar
  • 241
1 vote
0 answers
148 views

Two prompt lines using emacs shell and plink

I am using emacs M-x shell command to create a shell, and from this shell I connect to a remote machine by using plink (PuTTY on windows). I have a problem with the prompt being presented twice. I ...
Runei's user avatar
  • 61
2 votes
1 answer
174 views

How to make TRAMP aware of VPNs?

For work I sometimes have to connect to our enterprise VPN. When inside of the VPN, I can reach host remote per SSH, so the following TRAMP incantation works: C-x C-f /ssh:remote:/path/filename RET ...
Daniel's user avatar
  • 3,653
0 votes
0 answers
54 views

Howto detect whether ssh server is online from elisp

When using magit-gerrit for git gerrit reviews and magit-gerrit-ssh-creds is set then magit-gerrit assumes that there is a gerrit server and tries to connect to it using ssh subprocess. The problem is ...
Konrad Eisele's user avatar
0 votes
1 answer
757 views

Pseudo-terminal will not be allocated because stdin is not a terminal. ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory

CentOS 7, Emacs 27.1 Here content of file myFile.sh: ssh [email protected] So when in vterm mode I use this: ./myFile.sh then I success connect to the remote machine (ip = 10.111.11.111) by ...
a_subscriber's user avatar
  • 4,124
0 votes
0 answers
271 views

emacs tramp/CyberArk detailed walkthrough

Edit: Solved... I'm using emacs 26.2, tramp 2.5.0, on OSX High Sierra 10.13.6... The server login requires: A normal password A passcode from a phone call The user has to specify a reason for the ...
Theodore Vadpey's user avatar
3 votes
3 answers
122 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,079
2 votes
1 answer
441 views

How to stop ivy-switch-buffer from trying to connect

I'm using ivy-use-virtual-buffers to see both currently and recently visited buffers in Swiper's ivy-switch-buffer and it worked great until last month when I opened distant files via ssh/Tramp. Ever ...
yPhil's user avatar
  • 983
0 votes
0 answers
97 views

xterm-mouse-mode inserting cursor information on drag

I'm running into a problem with emacs used via ssh. The problem occurs when I: Log in remotely using SSH on Konsole Run emacs -Q Invoke mouse mode with M-x xterm-mouse-mode When I click-and-drag on ...
Declan Thompson's user avatar
1 vote
1 answer
706 views

Start emacs from the command line with remote ssh file open

How to start Emacs from the command line with and open file trough ssh? What I usually do is first open Emacs and do: C-X C-F /ssh:my_remote_server:/file.txt RET How can I directly open the file from ...
ucsky's user avatar
  • 133
3 votes
1 answer
535 views

Magit connecting to github with alternate ssh key

I have two github accounts – one personal and one for my job. In most of my repos, I use my work account and magit works fine. In a couple personal repos, I have this in .git/config: sshCommand = ssh -...
Doug Harris's user avatar
0 votes
0 answers
518 views

Cannot connect to WSL using Tramp (all localhost)

this is my %USERPROFILE%\.ssh\config Host wsl User daniele Port 2222 HostName localhost If I open a cmd and run ssh wsl everything works like a charm. But when I try: C-x C-f /ssh[x]:daniele@...
Daniele's user avatar
  • 657
1 vote
2 answers
287 views

How do I make Tramp stop mangling my PATH?

Tramp is very tenacious in overriding the PATH setting of a remote machine. How can I completely disable this, so that Tramp's PATH is identical to what I get when I manually log in with ssh on the ...
Augusto's user avatar
  • 436
1 vote
0 answers
124 views

How to tell Tramp to load a remote .bashrc before executing commands remotely?

Problem: I have an elisp plugin which is failing on a call to start-file-process when executed within a remote directory. The issue is that the command I am trying to call with start-file-process ...
George's user avatar
  • 919
1 vote
0 answers
1k views

SSH connects, TRAMP doesn't

this is a lot like the issue described here already. It seems like the fancy prompt issue, however, I've tried to use sshx which I was told would solve this issue. I an wondering if anyone else have ...
Emax2020's user avatar
0 votes
1 answer
134 views

tramp mode on Ubuntu hangs while attempting ssh to 0.0.0.1

With emacs 25.2.2 on Ubuntu 18.04, if I try opening a file over ssh using a path such as /ssh:somehost.example.com:/tmp/testfile, it launches a sub-process that does: /usr/bin/ssh -o ControlPath=%C 0....
alani's user avatar
  • 101
1 vote
0 answers
948 views

Tramp can't connect - cannot find ssh

I am trying to use Tramp, but it seems unable to execute the ssh command. Here is the error from *Messages*: Tramp: Opening connection for AWS2 using ssh... Word wrapping enabled Tramp: Sending ...
n1k31t4's user avatar
  • 689
0 votes
0 answers
254 views

Tramp su seems to not work

I would like to upgrade my current workflow so I can use Emacs to edit a file on a remote machine. Here is what I have to do now: ssh remote # password1 required sudo su -l otheruser # password2 ...
Alex Shroyer's user avatar