We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [ssh]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
47 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 ...
1
vote
0answers
17 views

Unicode character display in emacs info under Chromebook secure shell

This may not be an Emacs configuration issue, but here are the symptoms: On a Chromebook, I'm using chrome's Secure Shell Extension v0.18 to ssh in to an Ubuntu 16.04 host, LANG set to en_US.UTF-8, ...
0
votes
0answers
22 views

Helm expands ~. Is it possible to expand other “aliases” as well?

Apparently anaconda-mode provides eldoc support on remote files, but it kinda breaks TRAMP if the remote file name contains an ssh alias (TRAMP will keep reconnecting over and over). It is ...
0
votes
0answers
48 views

Use ssh-agent's SSH_AUTH_SOCK value, not macOS' one [duplicate]

When I run (getenv "SSH_AUTH_SOCK"), I get "/private/tmp/com.apple.launchd.K9OEFgxDgw/Listeners". I want to set it to the value that is returned by echo $SSH_AUTH_SOCK on the command line which is ...
1
vote
0answers
133 views

Editing a file with emacs over ssh on remote machine

I am editing configuration files with emacs on remote hosts using ssh connection. It works perfectly. But I recently made RSA keys and now I can connect to these hosts with the keys without password, ...
1
vote
1answer
84 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-...
0
votes
2answers
303 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 ...
0
votes
0answers
56 views

Why eshell lists my host environment variables when I am connected to other machine via ssh?

I am connected to another machine using tramp and my eshell does send all the commands to remote machine but when I do echo $PATH it prints me my local PATH. Why?
0
votes
1answer
292 views

set up custom port for default ssh connection in tramp

I am wondering what is the best way to set up a default port that is not the standard 22 port. I regularly log in with tramp to remote systems and would like to avoid having to put in #1234 every time ...
0
votes
1answer
63 views

Tramp: Is there a way to use something like ssh-directory-tracking-mode but via ssh instead of ftp?

The boxes I'm working with are locked down and only have the SSH port (22) open, so I can't use directory tracking via FTP. But directory tracking is really handy. There has to be a way. Does anyone ...
0
votes
1answer
106 views

Trouble connecting GNU emacs to work machine through SSH & TRAMP

I am a new emacs user. Previously, for work, I would ssh into my work machine by activating my VPN and then running ssh work (work is an ssh nickname defined in .ssh/config) in my terminal. This would ...
0
votes
1answer
138 views

Tramp with ssh not asking for password - too many authentication failures

I would like to use tramp to login to a remote server via SSH. It used to work effortlessly, but somehow it does not even ask me for a password any longer and tries wildly to login with I guess keys ...
1
vote
1answer
71 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
33 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
256 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
67 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
138 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
270 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 ...
1
vote
1answer
188 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
176 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
384 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 ...
3
votes
1answer
488 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 ...
5
votes
2answers
571 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
378 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 ...
1
vote
0answers
382 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 ...
5
votes
1answer
1k 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 ...
2
votes
1answer
416 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
362 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-...
2
votes
0answers
751 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
93 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
212 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
483 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 ...
2
votes
1answer
846 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
2k 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 -...
4
votes
2answers
1k 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
71 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
509 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
38 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
65 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
221 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
289 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
237 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
322 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
1k 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
2k 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#...
3
votes
3answers
763 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
59 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
1k 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
62 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
256 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 ...