How do you edit files over SSH?

后端 未结 17 1656
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 18:44

I program with eclipse and sometimes use GUI text editors like SciTE or vim. However, I\'m at a point in a project that requires me to edit files over a ssh connection in a 80 c

相关标签:
17条回答
  • 2021-01-29 19:28

    Since sshfs is not supported in WSL at the moment, the tool that worked for me is sshfs-win.

    Installation Steps

    1. Go here and click "download winfsp"
    2. Install it
    3. Go here and download the installer
    4. Install it
    5. Open windows explorer and right-click "This PC" > "Map Network Drive..."
    6. Select a drive letter (B:), type in "\\sshfs\debian@10.13.100.36" and click Finish
    7. Boom, done. Now you can have a B: drive on your computer and just do whatever with those files. Open them with VSCode, delete them, whatever you like
    0 讨论(0)
  • 2021-01-29 19:29

    X11 forward can be sluggish... what OS are you connecting to? You might try 'nano' on ubuntu, or 'diakonos' if you want windows key bindings.

    0 讨论(0)
  • 2021-01-29 19:30

    You might try the Komodo editor. It has a feature to load a 'remote file' over ssh. It's really convenient.

    0 讨论(0)
  • 2021-01-29 19:34

    If you're on Ubuntu, go to Nautilus (file explorer), connect to server (adding sftp:// to the hostname), then voila! You can easily launch gedit to edit your files now.

    0 讨论(0)
  • 2021-01-29 19:34

    On Windows, you can use MobaXterm ( http://mobaxterm.mobatek.net ): it has a built-in SSH client with a very useful "SFTP browser".

    As soon as you connect to your remote server using SSH, you will see your remote files displayed in this graphical SFTP browser. Just double-click on your files and you will be able to edit them directly on your remote server through SFTP.

    0 讨论(0)
  • 2021-01-29 19:36

    Emacs and ange-ftp.

    0 讨论(0)
提交回复
热议问题