(ssh hostname "-X")) Tramp using cygwin SSH "Start an SSH session with X11 forwarding in a shell window." (async-shell-command (concat "fakecygpty ssh " flags ( when flags " ") hostname) buf)))) ( if (and (get-buffer buf) (get-buffer-process buf)) "Start an SSH session in a shell window." Since “fakecygpty ssh” is a bit of an awkward command, these helper functions may be useful: ( defun ssh (hostname &optional flags) The DISPLAY environment variable may need some modification however: (setenv "DISPLAY" "localhost:0.0")Ĭ:\Program Files\Emacs\emacs-24.3\bin>fakecygpty ssh -X my_server Convenience wrappers X forwarding with Xming can be used as usual to fire up graphical applications on the remote host. `set-process-window-size` and `process-send-eof` are also supported. This allows to stop, continue and interrupt Cygwin processes, directly or from a Cygwin shell (C-c C-c, etc.). There’s also, which extends fakecygpty to handle signals and special chars. The command to run then becomes c:\Program Files\Emacs\emacs-24.3\bin>fakecygpty ssh my_server When compiled from within cygwin according to the instructions, you get a nice little shim program which does present the expected tty interface. As a possible workaround, someone smart has come up with ‘fakecygpty’. fakecygptyĪs noted in the Cygwin archives, an NTEmacs build doesn’t know how to present itself as a cygwin tty device when running cygwin commands. Permission denied (publickey,gssapi-with-mic,password). Ssh_askpass: exec(/usr/sbin/ssh-askpass): No such file or directory Pseudo-terminal will not be allocated because stdin is not a terminal. All rights reserved.Ĭ:\Program Files\Emacs\emacs-24.3\bin>ssh my_server However when run within an Emacs shell window it likes to give errors: Microsoft Windows Ĭopyright (c) 2009 Microsoft Corporation. The Cygwin OpenSSH client can be used to start an SSH session from the command line, and works fine when run from a DOS command prompt. (I guess life might be easier using plink instead of ssh, but the server in my office doesn’t seem to like it). This page gives some suggestions on how to get by without resorting to a cygwin Emacs. It is possible but awkward to use cygwin SSH to access a Linux machine from within NTEmacs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |