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
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
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
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
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
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
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
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
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
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
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
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
1 vote
2 answers
4k views

Can't connect to remote ssh host using tramp on Windows

I have 2 operating systems: Windows XP and Linux Slackware. In both operating systems I have the following text in ~/.ssh/config: Host beta HostName <server IP> User beta Port 22 I can ...
user4035's user avatar
  • 1,059
1 vote
1 answer
575 views

emacs --daemon crashes when parent ssh session dies

I'm using emacs 26.1 (although I don't think this is a new issue with this verison). Note - this is not the GTK bug which results in the daemon crashing if X Connectivity is lost. I am aware of that ...
Phil's user avatar
  • 535
1 vote
1 answer
692 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 #+...
Daniel's user avatar
  • 3,653
1 vote
1 answer
136 views

Using TRAMP through CyberArk Privileged Session Manager

Normally it is very easy to convert ssh and scp commands into tramp format for access via dired. For example The command line ssh username@hostname will become /ssh:username@hostname: in ...
Melioratus's user avatar
  • 4,669
0 votes
2 answers
2k 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 ...
Andrew's user avatar
  • 561