Questions tagged [ssh]
is the secure shell program that encrypts network communications over unsecured networks.
163 questions
0
votes
0
answers
12
views
OSC 3008 Code when using ssh in ansi-term
I've been getting this error if I use the ansi-term to ssh into a machine that's on my lan. The cli prompt is prepended by a long OSC character sequence
]3008;start=;user=adsfibonacci;hostname=<...
0
votes
1
answer
44
views
Tramp ssh got broken in the latest build [closed]
Built Emacs from git repo (using c5f649441e2e055701c7bee811eaf266c4f0e7ce hash) and Tramp ssh that was working forever doesn't work at all. Neither does M-x /sudo::/something
Setting tramp-verbose to ...
0
votes
0
answers
46
views
Ess with org mode over tramp on hpc in slurm interactive job hangs
I have emacs running on my mac.
I use tramp to open a remote dir in dired
I run M-x shell from that buffer to open a new shell on the
remote HPC machine.
I start an interactive job with slurm: srun --...
1
vote
0
answers
66
views
Problem with connection sharing using tramp
I'm unable to get tramp to share ssh connections, which makes most operations very high latency. What's weird is that the first time emacs needs to open a connection to a host, it uses the arguments:
...
0
votes
0
answers
35
views
How can I have local ssh history with eshell?
With eshell, I seem to have a global history, if I connect to remote systems, I still see commands in my history, from totally different ssh sessions.
Can I have eshell history per host or what is the ...
1
vote
0
answers
95
views
EMACS@linux, tramp to windows
I've cygwin installed on windows, and I've set cygwin.bat as a shell for openssh@windows. I can ssh there without problem. Now trying to setup subj.
In the tramp debug I see this:
09:11:12.962825 ...
0
votes
2
answers
84
views
How can I do tab completion in M-x ssh?
After connecting via ssh, I'm trying to tab complete, but I only get:
Debugger entered--Lisp error: (void-function comint-dynamic-complete)
comint-dynamic-complete()
ssh-tab-or-complete()
...
0
votes
1
answer
84
views
How to configure eshell prompt to correctly display working directory on remote host over TRAMP?
Running emacs -Q for emacs 29.4 (build 2, x86_64-w64-mingw32):
~/.ssh $ cd /ssh:oracle-root:/
/ssh:oracle-root:~/ $ pwd
/ssh:oracle-root:/home/opc/
/ssh:oracle-root:~/ $ /bin/pwd
/
There should be ~/...
0
votes
1
answer
223
views
Windows 11 native ssh.exe doesn't show a password prompt in some cases (emacs)
I am trying to use emacs tramp via /ssh: which calls Windows 11's native ssh client. It hangs. Reading logs, it seems ssh.exe never serves the password prompt username@hostname's password: to tramp, ...
0
votes
1
answer
128
views
Updating ssh-agent state from within Emacs
I have recently switched from launching Emacs from the terminal (i.e. emacs --init-directory "path/to/my/init") to launching it from a universal keybinding (i.e. super-e). This has had the ...
0
votes
1
answer
192
views
tramp-sshfs remote command execution doesn't respect `tramp-remote-path` or `tramp-remote-process-environment`
Recently I noticed a new tramp protocol called sshfs was introduced in Emacs 28 and I decided to try it out. It works fine, and as I understand it, opening and editing remote files is done through the ...
0
votes
0
answers
94
views
Yesterday, I set up SSH. Today, Emacs crashes on boot. How to fix?
Yesterday, I didn't change anything in Emacs. All that I did was set up SSH through ssh-add and ssh-keygen. Today, Emacs crashes moments after opening. I suspect the two are related. How can I debug ...
1
vote
1
answer
107
views
Multi-hop access keeps asking for password on second machine
In my company, for many reasons, we need to use the company's machines to compile and run our application. I've been using Emacs+Tramp for a while to access my machine and it works very well most of ...
0
votes
1
answer
455
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 ...
0
votes
0
answers
71
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 ...
1
vote
1
answer
146
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 ...
3
votes
2
answers
221
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 ...
0
votes
1
answer
197
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 ...
2
votes
1
answer
484
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 ...
0
votes
2
answers
106
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 ...
1
vote
1
answer
171
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....
0
votes
1
answer
228
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 ...
0
votes
1
answer
91
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 ...
0
votes
0
answers
59
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 ...
1
vote
1
answer
812
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/...
0
votes
1
answer
54
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 ...
1
vote
1
answer
1k
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 ...
2
votes
1
answer
974
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 -...
3
votes
2
answers
1k
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, ...
1
vote
0
answers
73
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 ...
0
votes
1
answer
56
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 ...
2
votes
1
answer
488
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 ...
0
votes
0
answers
49
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) ...
0
votes
1
answer
827
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
...
0
votes
1
answer
594
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, many actions I do with Emacs ...
0
votes
2
answers
206
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 ...
0
votes
1
answer
148
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-...
3
votes
1
answer
584
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 ...
1
vote
0
answers
204
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-...
0
votes
1
answer
350
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 ...
1
vote
0
answers
736
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 ...
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 ...
1
vote
0
answers
367
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]....
0
votes
0
answers
86
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 ...
1
vote
0
answers
201
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 ...
2
votes
1
answer
253
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
...
0
votes
0
answers
61
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 ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
370
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 ...
3
votes
3
answers
158
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-...