Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh]

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

0
votes
1answer
25 views

How can I set tramp-histfile-override using tramp-connection-properties?

I'm trying to set a different tramp history file override based on connection-specific rules. My attempts have been along the line of: (add-to-list 'tramp-connection-properties (list (...
0
votes
1answer
26 views

Tramp to office pc timesout, but cli ssh ok

From the commandline, this works: ssh office However, C-x C-f /ssh:office: simply freezes and eventually times out. That C-x C-f syntax works fine for all the servers our sysadmin has configured, ...
2
votes
1answer
85 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;/...
1
vote
1answer
46 views

How to set a default password for wildcard host in tramp?

I have a list of hosts 192...* with a default user and password, I've tried to set wild-card in .authinfo.gpg but it still requests password when I try to login. There are no problems when it set ...
2
votes
1answer
65 views

How to setup tramp mode through a linux gateway and hardware authentication?

I don't have direct access to my remote machine at work. Normally I login with the following commands (local)$ ssh id@gateway Yubikey prompt (physically push a button on the yubikey) PW prompt: (...
1
vote
0answers
125 views

Tramp fails to open remote shell when connecting to android

I'm trying to connect to my Android device via SSH using TRAMP. I've setup my SSHDroid, configured ssh keys and my ~/.ssh/config, so I'm able to connect with just ssh android from terminal. But when ...
0
votes
1answer
81 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 ...
0
votes
1answer
114 views

how do you disconnect ssh in emacs shell mode

In a regular terminal, I do ~ enter d to disconnect from a ssh session. sometimes I do ~ enter Ctl-z to minimize/bg the ssh process Is this possible while inside a M-x shell buffer in emacs. (I ...
0
votes
0answers
166 views

Copying Text from Terminal Emacs over SSH?

I have emacs running on machine A. I then connect to emacs via a terminal (over SSH) from machine B. Question: From Machine B, how do I copy text to Machine B's clipboard to paste it, i.e., into a ...
0
votes
0answers
72 views

preview-latex not working for remote files

When I run 'C-c C-p C-b' on local machine everything compiles, and I can see preview of my pics, tables and equations. Then I try to compile the same project on my remote machine using local emacs in ...
3
votes
1answer
219 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 ...
3
votes
2answers
269 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 ...
3
votes
2answers
133 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 ...
0
votes
0answers
178 views

From Org code block on *nix run (Power-)Shell (scripts) on MS Windows via SSH

To better integrate my Windows DevOps into Emacs Org-mode, I'd like to use my local emacs as an IDE for a remote Powershell. SSH was easily setup, from Linux shell ssh I can successfully login to a ...
4
votes
1answer
935 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 ...
0
votes
0answers
36 views

Tramp stalls when saving a remote file

After using Tramp for a little while, it stalls whenever I try to save a file. I have no problem connecting to remote files, but saving them now stalls and I can't enter C-g or any other commands. ...
2
votes
1answer
151 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 :...
2
votes
1answer
199 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-...
1
vote
0answers
397 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 ...
0
votes
1answer
70 views

How to send few chars to shell buffer automatically/periodically

I would like Emacs to send a few chars (command, ideally) to a specific buffer (ssh shell) so that the session does not terminate. How can I achieve this?
0
votes
1answer
121 views

Save Nano File on Terminal through 'ssh'

I've accessed a server through the ssh mode in Emacs. I need to create and save a file on the server. I can open a file through nano <filename> and start to type. However, I'm unable to close &...
0
votes
2answers
230 views

Remote machine: Your terminal lacks the ability to clear the screen or position the cursor

Linux Mint 18.1 (64 bit) Xfce, Emacs 25.3 If I want to connect(via ssh) to remote Linux macnine I do next step: Open terminal ssh -oStrictHostKeyChecking=no mylogin@192.xxx.xxx.16 As result I ...
0
votes
0answers
72 views

How to get tramp to connect to remote machine with this prompt?

I'm having a hard time understanding how to get tramp to connect to my schools remote machine. When using ssh the prompt looks like this: $ ssh me@machine.edu * * * WARNING ...
2
votes
1answer
448 views

fix “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
2
votes
0answers
865 views

ssh - Pseudo-terminal will not be allocated because stdin is not a terminal

Windows 10 (64 bit), Emacs 25.1 If I want to remote connect by ssh to UNIX machine (Ubuntu) from my local machine (Windows 10) I do the next step: Run cmd Execute the next command ssh -...
5
votes
2answers
779 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 ...
0
votes
0answers
46 views

lines are mixed up when running emacs remotely

When I ssh onto a remote server, and then open emacs on that server, and attempt to edit, I often experience many issues with the display. For example, when I move my cursor around the file using C-...
1
vote
1answer
381 views

How to have a remote terminal inside Spacemacs, like a PuTTy within Emacs? [duplicate]

My question is about mimicking PuTTy inside Spacemacs in Windows, not about using Spacemacs via PuTTy. That is, I am interested in learning whether it is possible to open within Spacemacs a remote ...
2
votes
0answers
32 views

Emacs how to run a command that requires a default editor remotely from with local Emacs? [duplicate]

I frequently use TRAMP to edit files on a remote machine but I also want to use Emacs for remote configuration and management. On any system there are some commands that run with the VISUAL and ...
0
votes
1answer
50 views

Run command on remote host after org-publish

I try to setup a basic, easy website workflow. Right now I can simply press C-e P x project-name, export and upload my Org, image, and whatnot files as HTML. As I don't want to upload that directly ...
0
votes
1answer
175 views

Reuse tramp connection details to start putty session

I often connect to remote servers using tramp to do some work, however sometimes after editing files I need to connect using PuTTY in order to do some specific task. At the moment I open up PuTTY, ...
0
votes
1answer
150 views

Emacs open ssh broken

My computer crashed whilst using emacs to ssh open a file. This was not related to emacs but an overheating problem. Since then emacs hangs every time I try and open a remote file using ssh I press ...
1
vote
2answers
178 views

edit via tramp/ssh fails on Solaris host

I recently upgraded my Emacs to 25.2.1 via dnf package manager (Fedora 25) and the edition of remote files via tramp and ssh is failing on Solaris 10 hosts (The same kind of editing is working on a ...
1
vote
1answer
216 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 #+...
0
votes
1answer
782 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 ...
3
votes
2answers
1k 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 https://emacs.stackexchange.com/questions /17866/magit-how-to-use-systems-ssh-agent-and-dont-ask-for-password/17890#...
4
votes
3answers
621 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?
2
votes
0answers
52 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 (...
7
votes
1answer
925 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 ...
1
vote
1answer
49 views

list hosts of ssh config file with helm when using ssh.el

I use ssh-mode when I need to work on remote hosts. As I only establish ssh connections to hosts, that are stored in my ssh config file I want this list of hosts to be displayed in a helm-buffer.
0
votes
2answers
206 views

Use remote git executable for magit and git-gutter when file system is SSHFS

How can I use a remote git executable for all git operations when accessing a file via SSHFS? I mount a remote system's git repo via SSHFS on my local computer. The git repo is medium-sized with ...
7
votes
1answer
1k 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 ...
1
vote
3answers
397 views

Interactive SSH in Emacs

So far I've been using Moba Xterm on Windows to connect via ssh to remote linux machines on my network, but I'd like to switch to Emacs. However, just running an eshell or shell buffer and trying to ...
0
votes
1answer
346 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 ...
0
votes
1answer
138 views

Why does SSH mode for emacs (ssh-el) hang?

Adding this for anyone who runs into this problem. I use SSH mode for emacs (ssh-el) on Windows and it just hangs there without connecting sometimes, usually after a crash.
1
vote
1answer
369 views

Tramp hangs even without prompting passcode

I'm trying to run tramp in Emacs 24.3 in Ubuntu 14.04. The tramp hangs even without prompting for passcode (RSA Token). I'm able to connect to the remote host from terminal and also from M-x shell in ...
2
votes
1answer
970 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 ...
0
votes
0answers
280 views

Creating directory: permission denied (Windows)

I am running Emacs on Windows. When I C-x f/path.to.linux.server:/home/username/file, it gives an error: Creating directory: permission denied, c:/Users/Marci What's even more interesting that if I ...
1
vote
1answer
139 views

Where does tramp store ssh hosts?

Recently on startup I started getting an OpenSSH dialog warning me of an unknown host key. I then allowed it to store the key, and now I get a a password window at startup. So then I went and ...
0
votes
0answers
875 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 ...