Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ssh through emacs shell?

Tags:

emacs

ssh

I wonder if anyone out there uses ssh through the emacs shell. I am able to connect with the remote machine but I cannot open files to view/edit with emacs using 'emacs filename' as the 'Terminal type "dumb" is not powerful enough to run emacs' (normally emacs would open within the console when connecting through the terminal).

Is this a bad idea to try to use emacs in such a way, or is this possible with a few fixes? Thanks much!

like image 770
hatmatrix Avatar asked Aug 28 '09 12:08

hatmatrix


People also ask

Can you use Emacs over SSH?

Multiple Terminals Of course, an even easier way to accomplish switching to the shell and then resuming editing is to open two terminal windows, sshing to the server in both windows and running emacs in one while running shell commands or mysql in the other.

How do I use Emacs shells?

You can start an interactive shell in Emacs by typing M-x shell . By default, this will start the standard Windows shell cmd.exe . Emacs uses the SHELL environment variable to determine which program to use as the shell.

Is Emacs its own shell?

Emacs comes with its own shell (as in, like bash or zsh ) written in entirely in Emacs-Lisp.


1 Answers

It may not be obvious on first sight, but eshell, the shell that is implemented in Emacs Lisp works fine with tramp:

Welcome to the Emacs shell  ~ $ uname -a Linux local-machine 2.6.30-1-686 #1 SMP Thu Jul 30 14:45:30 UTC 2009 i686 GNU/Linux ~ $ cd /ssh:user@remote-machine:~ /ssh:user@remote-machine:/home/user $ uname -a Linux remote-machine 2.6.18-6-686 #1 SMP Thu Aug 20 21:56:59 UTC 2009 i686 GNU/Linux /ssh:user@remote-machine:/home/user $  
like image 165
hillu Avatar answered Oct 06 '22 03:10

hillu