Skip to main content

Questions tagged [ssh]

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

Filter by
Sorted by
Tagged with
32 votes
3 answers
10k views

Magit, how to use system's ssh agent and don't ask for password

I've googled and read the FAQ and Wiki for Magit, but still unable to figure this out, all I find are answers about Windows... How can I configure Magit to use my running ssh-agent session and don't ...
user avatar
15 votes
2 answers
6k views

Tramp/Dired transfers files inline over ssh instead of using scp externaly

I am using tramp via ssh to access remote files. For text files, this is working really well, but whenever I want to copy larger remote files to my local machine, tramp uses its slow inline method (...
Chris's user avatar
  • 252
15 votes
3 answers
2k views

Can Emacs use tramp to run in an interactive session on a remote HPC node?

I have been using Emacs with ESS and tramp to load remote files and run remote R processes on HPC computers. With ssh keys, tramp makes this easy with C-x C-f to find file at /ssh:myserver:/path/to/...
David LeBauer's user avatar
13 votes
1 answer
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 ...
darkpool's user avatar
  • 231
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
11 votes
3 answers
3k views

TRAMP is unbearably slow (OSX, ssh)

I have always found TRAMP to be crazy slow (5+ secs to fetch a directory listing) so I've avoided it for years. Time to figure out what is going on. I'm always connecting via ssh, using declarations ...
jmay's user avatar
  • 373
11 votes
2 answers
2k views

Attach to running remote shell with eshell/TRAMP/dtach

I often use GNU Screen to keep remote sessions alive. Since I live in Emacs, I'd really like to be able to resume a running remote shell session from within Emacs. GNU Screen implements all sorts of ...
user avatar
10 votes
8 answers
1k views

magit-push hangs on Windows

I'm using GNU Emacs on Windows, and I am unable to use magit-push to push my local changes to a remote repository. This happens with remote repositories regardless of if they are accessed with SSH or ...
Ryan's user avatar
  • 4,049
10 votes
2 answers
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 ...
spacegoing's user avatar
9 votes
1 answer
1k views

Using Tramp for logs

I am trying to use Tramp with auto-revert-tail-mode to perform a tail of a remote log. Every time the log updates (which is often), the screen briefly jumps to the bottom of the file and then back to ...
ChaimKut's user avatar
  • 187
8 votes
3 answers
5k views

TRAMP vs ssh to remote emacs

Is it considered better to use TRAMP to access remote files on a local copy of Emacs, or to ssh into the remote server and access the files using a remote copy of Emacs in the ssh session? What are ...
Hatshepsut's user avatar
8 votes
3 answers
2k views

Magit asks for passphrase for ssh key every time

Running emacs 25.2.2 magit 2.12.1 on Kubuntu 18.04. I have set-up ssh keys for my bitbucket repository and I run ssh-agent on start. When I fetch or pull or push, magit asks for the passphrase for ...
deshmukh's user avatar
  • 1,912
8 votes
4 answers
4k views

Copy/paste between SSH terminal Emacs and macOS

Suppose you are working in macOS, and you decide to SSH into a Linux box and fire up terminal Emacs. How do you copy and paste between macOS and your SSH terminal-Emacs? Copying and pasting between ...
aparkerlue's user avatar
8 votes
2 answers
742 views

eshell-visual-commands with tramp

I know that I can add commands to eshell-visual-commands to for example make it so when I run "top" it runs in a temporary ansi-term buffer instead of the eshell buffer, so that programs that rely on ...
Joseph Garvin's user avatar
7 votes
5 answers
6k views

fix or workaround: "Terminal is not fully functional"

What can I do about this issue? I'm using psql, inside a ssh tunnel to ubuntu, inside a M-x shell, inside a emacsclient -nw
american-ninja-warrior's user avatar
7 votes
2 answers
21k views

How can I quit Emacs from within a term within Emacs?

I'm in a situation where I have to ssh into a machine and do all of my coding on there. For a while I would ssh in and then use tmux and emacs -nw mode. Recently, I discovered the term command. Now ...
user avatar
7 votes
1 answer
1k views

Tramp with 2-factor authentication

I need to use Tramp to connect to a server that has 2-factor authentication. When I log in from the command line or from I get a message asking me to press 1 (and hit enter) which then sends a popup ...
Rob Donnelly's user avatar
7 votes
2 answers
1k views

Emacs suspend at startup ssh connection issue

I toggled the debug-on-error and debug-on-quit options, then press C-g when Emacs suspend. Got this error output: Debugger entered--Lisp error: (quit) call-process("ssh" nil t nil "-o" "ControlPath=...
stardiviner's user avatar
  • 1,928
7 votes
2 answers
2k views

Tramp connection fails with "timeout reached"

I've been using tramp to edit remote files for a few years now, but suddenly it stopped working yesterday. I haven't changed anything relevant that I can think of. For testing, I tried opening a file ...
terdon's user avatar
  • 745
7 votes
1 answer
1k views

File and directory autocompletion in remote shell

In my local shell, completion-at-point after cd returns a list of directories. However, when I ssh into a remote, Emacs thinks I'm still in my local home directory. How can I configure Emacs to give ...
Matthew Piziak's user avatar
7 votes
0 answers
2k views

Tramp freezes Emacs with OpenSSH on Windows

I just installed Emacs on my Windows machine for remote file editing using Tramp. However, I noticed than whenever I try to connect to a remote server (C-x C-f /ssh:home:), Tramp just displays Opening ...
Nick Clifford's user avatar
6 votes
2 answers
6k views

Magit how to use ssh key rather than being prompted for password

I've seen the question here but I'm not sure if the same solution would apply to me Magit, how to use system's ssh agent and don't ask for password I'm on Emacs 25.1 / Ubuntu 16.04. I've just ...
irregular's user avatar
  • 1,012
6 votes
1 answer
2k views

Emacs 26.1 RC1 display issues over SSH/X11 with xming/vcxsrv

I can compile Emacs 26.1 RC1 ok, and use it locally on the host fine. However, when attempting to ssh -X to host via PuTTY 0.70 and launch the Emacs gui, emacs is not displaying correctly. See ...
bscipio's user avatar
  • 181
5 votes
2 answers
2k views

Tramp: how to add (-A) agent forwarding to ssh connections?

I'm using Magit over Tramp and my git push commands fail because tramp doesn't forward my ssh-agent to the remote machine. In pseudo code, it looks like I need to do the following: tramp-methods["...
Harvey's user avatar
  • 978
5 votes
1 answer
1k views

Tramp login with 2-factor authentication

To ssh, the server I am connecting to needs a password followed by an RSA-like key. It goes: Password: Verification code: I've read Tramp with 2-factor authentication, but it does not solve the ...
bernie's user avatar
  • 609
4 votes
2 answers
243 views

Fetch configuration from remote (e.g. Github) at startup

I have to work on multiple different machines and it would be nice to keep my .emacs file consistent everywhere. Question: is there a package which allows to update the file at startup from a remote ...
Beginner's user avatar
  • 2,721
4 votes
2 answers
611 views

TRAMP mode hangs while copy large file from remote to local via Ssh

Trying here to download (scp file from remote to local) that was considered large file, then Emacs tried to compact it, then got stuck. Even used scp command to do it because copying via ssh got ...
Emmett44's user avatar
4 votes
1 answer
861 views

Using with-editor

I learned about with-editor in this thread. This is something that I have been looking for a long time. I tried to use it to modify EDITOR and VISUALfollows: I installed it from MELPA, then I open ...
Amelio Vazquez-Reina's user avatar
4 votes
1 answer
2k views

tramp-default-method has no effect

I have a config file to setup defaults for tramp. For the purposes of this example foo and bar are hosts defined in /etc/hosts. (require 'tramp) (setq tramp-default-method "ssh") (add-to-list 'tramp-...
Phil's user avatar
  • 535
4 votes
2 answers
2k views

Why does the buffer get garbled?

Not sure what's going on here, but if I open a file in emacs (no window mode), and just do a search (ctrl-s), the buffer gets garbled. It fixes itself when I ctrl-l, but that's annoying to have to do ...
emecs's user avatar
  • 41
4 votes
1 answer
2k views

"Invalid base64 data" error when using tramp

I'm using an Intel Edison, and I want to edit files on there with Emacs. I can connect to the device with tramp, using several methods and explore using dired. But trying to visit a file gives an ...
jpkotta's user avatar
  • 508
4 votes
1 answer
430 views

Having trouble getting eshell remote shell multi-hop to work

I can get single hop ssh to work just fine: ~ $ cd /ssh:cpatti@wak-prod-jump1:~ /ssh:cpatti@wak-prod-jump1:/home/jumpboxaccess_emergency $ But when I try multi-hop, I get command not found every ...
feoh's user avatar
  • 910
4 votes
1 answer
2k views

transparently find file over ssh in *shell* directory

I ssh'd into a remote server from shell and tried to open a file on a directory path that also exists on my local system. The list of files I was able to open using helm-find-files was the list on my ...
wdkrnls's user avatar
  • 3,707
3 votes
2 answers
2k views

How to sudo save file in TRAMP mode?

I just started using tramp mode, and it looks amazing. However, there's one issue that's making it non-usable for me. I have several boxes which I log into with one user, say, user. He's in sudoers ...
gregoltsov'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
3 votes
1 answer
412 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
3 votes
3 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
3 votes
1 answer
522 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
3 votes
1 answer
1k views

emacs daemon and ssh agent forwarding

In order to use ssh agent forwarding with emacs in daemon mode, running on a remote server, I've come-up with the following. I have an alias for the client like so: alias emacsclient="update_agent;/...
Phil's user avatar
  • 535
3 votes
1 answer
1k views

How can Magit add a credential to ssh-agent?

Can I make Magit add my ssh passphrase to ssh-agent instead ask me to use the passphrase a single time? Every time I push a commit to my remote I need to type my passphrase or instead run M-& ssh-...
squiter's user avatar
  • 229
3 votes
2 answers
4k views

TRAMP hangs after timeout on trying to connect

After I type C-x /remote.server.com TAB /, the prompt changes to spinning bar and nothing more happens. After around a minute of waiting I get the same prompt I was entering, i.e. /remote.server.com:. ...
tijagi's user avatar
  • 131
3 votes
1 answer
2k views

Tramp: Waiting for prompts from remote shell... Sending command `exec ssh -e none bin'

Tramp hangs for several minutes every time I launch Emacs, giving me these errors: Tramp: Opening connection for bin using scp... Tramp: Sending command `exec ssh -e none bin' Tramp: Waiting for ...
incandescentman's user avatar
3 votes
1 answer
461 views

using tramp over aws ssm proxycommand

I'm trying to get tramp to use my ProxyCommand from my ~/.ssh/config (pasted below), specifically for AWS SSM. Should I expect this ProxyCommand to work, maybe something is wrong with my environment ...
wonderfulthunk's user avatar
3 votes
3 answers
3k views

connect to remote emacs session via ssh

Unfortunately, I forgot to start the emacs-server at work, running on Linux. Is there now any option to connect to my remote graphical X11 emacs session via ssh?
pawel_winzig's user avatar
3 votes
1 answer
960 views

Querying remote postgres from org

this is a bit complicated, please bear with me I want to use org-babel to query postgresql, and I can do it for DBs that I can access directly from my localhost: #+begin_src sql :engine postgresql :...
iLemming's user avatar
  • 1,263
3 votes
1 answer
790 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 ...
Stefan Mesken's user avatar
3 votes
0 answers
128 views

make-frame-on-display & emacsclient fail w/ exported display while other apps are fine

I am connecting to my office GNU/Linux box from a windows laptop through a putty ssh tunnel. I have also on the laptop the java WeirdX X11 server, that is declared in putty to use the localhost:2 (...
Seki's user avatar
  • 157
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
2 votes
1 answer
169 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
2 votes
1 answer
737 views

How can I use Emacs in a SSH sever that I logged in through emacs terminal?

I really like the emacs terminal but each time I use it to log into my server. I don't know how to use emacs to edit files on the server. Or it is not possible to do it? I can only edit files on ...
LifeWorks's user avatar
  • 123