[ACCEPTED]-ssh through emacs shell?-ssh
It may not be obvious on first sight, but 2 eshell
, the shell that is
implemented in Emacs 1 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 $
A couple of ideas
- Source the .bashrc explicitly via
. ~/.bashrc
and/or rearrange your bash init files and~/.profile
so that this gets loaded inside the emacs shell; then runningssh
inside the Emacs shell works just fine - Use the emacs-specific Tramp mode to access remote files via ssh inside your local Emacs -- this is useful if you just need to update/touch/edit a remote file so you would not need to open a remote emacs inside the ssh session started from inside your local emacs.
0
Emacs has term-mode which is full blown 7 terminal emulator you can run emacs in emacs. Anything 6 you run on terminal will run in term-mode
Also 5 emacs has tramp mode which can open files 4 through ssh.
/scp:user@ipOrHost#port:/
it will transfer files back 3 and forth. you just edit them as you would 2 edit local files.
No need for x11 forwarding 1 or other shenanigans.
You could use ssh x forwarding to run a remote emacs and 4 display it on the local computer.
I use Xming X Server when I'm on Windows
You could 3 mount the remote filesystem with ssh and open the locally as normally.
For this I use ExpanDrive (commercial app) when on Windows
You 2 could use emacs Ange ftp over ssh it can open remote files 1 over ftp and ssh.
I use this with cygwin when on Windows
I have been struggling with Xming, which 13 works, but as my internet connection is 12 not the fastest I have to wait more 30 seconds 11 before emacs or any X app even shows up. Also 10 scrolling through a buffer after it has 9 been opened will freeze from time to time 8 => Very annoying
Try No machine (nxserver-freenx 7 server/client). There are free edition servers, absolute 6 the best and fastest solution when you want 5 to connect to a Linux box and use xterm 4 and emacs over X. It shows up immediately 3 and responds so fast. Even over a really 2 slow connection :-) Clients are available 1 for Windows, Mac OS, Linux
Emacs option for ssh : c-x c-f /ssh:user@host:/home/path/
For Reference: Open file via SSH and Sudo with Emacs
0
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.