ssh through emacs shell?

前端 未结 6 1645
闹比i
闹比i 2021-01-30 10:32

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 filenam

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 11:27

    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 $ 
    

提交回复
热议问题