ssh through emacs shell?

前端 未结 6 1634
闹比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条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 11:26

    Emacs has term-mode which is full blown terminal emulator you can run emacs in emacs. Anything you run on terminal will run in term-mode

    Also emacs has tramp mode which can open files through ssh.

    
    /scp:user@ipOrHost#port:/
    

    it will transfer files back and forth. you just edit them as you would edit local files.

    No need for x11 forwarding or other shenanigans.

提交回复
热议问题