Questions tagged [ssh]

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

Secure Shell (SSH) is both a command and a cryptographic network protocol for operating network services securely over an unsecured network. Remote logins, remote data transfer, and interacting with remote shells are some common functions that rely on encryption provided by . With such encryption, no longer are passwords sent in plaintext over the network.

Emacs uses as an underlying layer for many commands and operations. For example, access relies on connections by default, and provide seamless protocol support. The secure shell itself comes in two major versions, supports several operations and encryption schemes, and interoperates with other secure hardware and software components.

Emacs provides a broad range of support for operations, protocols and encryptions, some of which are not readily apparent. For example, encrypting for and operations, or interacting with the ssh-agent to simulate password-less login services.

When tagging with , include other tags to indicate which aspect of Emacs operations, protocols, or encryptions the question pertains.

141 questions
30
votes
3 answers

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 ask for my password when doing a push. I'm running…
user2234
15
votes
2 answers

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 (encoding the file with gzip). This is much slower…
Chris
  • 252
  • 2
  • 5
15
votes
3 answers

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/file followed by M-x R to launch an R…
David LeBauer
  • 433
  • 2
  • 10
13
votes
1 answer

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 key, so no password is needed. Therefore I don't…
darkpool
  • 231
  • 1
  • 4
12
votes
2 answers

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 requiring sudo?
Philip Kirkbride
  • 557
  • 5
  • 14
11
votes
1 answer

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 fancy things like terminal multiplexing and…
user2005
11
votes
3 answers

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 in ~/.ssh/config. The connections are fine, I've…
jmay
  • 363
  • 2
  • 9
10
votes
8 answers

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 HTTPS. What do I need to do to make magit-push…
Ryan
  • 3,989
  • 1
  • 26
  • 49
10
votes
2 answers

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 to Create repository in…
spacegoing
  • 419
  • 2
  • 9
9
votes
1 answer

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 my current location in the file. Is there a way…
ChaimKut
  • 187
  • 8
8
votes
3 answers

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 ssh key. How can I avoid keying this passphrase…
deshmukh
  • 1,852
  • 13
  • 29
8
votes
4 answers

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 macOS and local terminal-Emacs is not a problem…
aparkerlue
  • 317
  • 2
  • 8
8
votes
2 answers

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 complex terminal stuff work seamlessly with…
Joseph Garvin
  • 2,061
  • 8
  • 21
8
votes
3 answers

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 some of the considerations involved in making this…
Hatshepsut
  • 545
  • 3
  • 14
7
votes
2 answers

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 on localhost with \C-x C-f…
terdon
  • 745
  • 6
  • 21
1
2 3
9 10