• BearOfaTime@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Another way - host the file somewhere like Dropbox/mega, etc. Have the server keep the file synced. Then you can edit it on the web storage.

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If you want to edit files in a browser, then it will all depend on what kind of files you want to edit.

    If it’s office suite related files, I’m leaning towards the Collabora Online suite with Nextcloud. If it’s markdown files, I’d go with something like HedgeDoc

    • ErwinLottemann@feddit.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      i agree with you. also the ‘use vscode ssh-remote-eeit-plugin’ or ‘install a remote web ide thing to edit one file’ answers are… questionable.

      syncthing does not require to open access to the outside and does what op wants.

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    WinSCP is a nice GUI app that will connect over various protocols and let you edit a file easily. You can save the connection details so it’s just like 2 clicks to edit a file.

    Surprised everyone is recommended SSH and vim and stuff when you wanted easy and simple.

    • TCB13@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Technically speaking the OP would be, most likely, be using SSH as the protocol to connect to the server using WinSCP. But yes, I agree with your point.

  • TCB13@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I would suggest something quick and simple such as FileBrowser. Another more “expensive” alternative would be to setup an SSH server on the server and use WinSCP to access the thing and edit the file that way.

    If you go the FileBrowser route I just would like to recommend you to be careful about opening your “server” to the internet. Setting up a VPN like I described here is recommended.

    If you can’t have run a VPN client on the target computer (work computer etc) and/or it isn’t practical (public machine) at least make sure you run FileBrowser behind a Nginx reverse proxy, use SSL, pick non-standard port and restrict the access to the thing as much as possible with a list of specific allowed IPs or, at least, only for your country. Using some 2FA solution and fail2ban for an extra layer of security is also recommended.

    • Kitikuru@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Always be careful when opening the port. But yes this is what I do as well, I just keep it behind a VPN

  • Doctor xNo@r.nf
    link
    fedilink
    English
    arrow-up
    36
    ·
    1 year ago

    You could use Nano (or Vim) over SSH, or set up a Samba-share from the server and mount it in your local OS somewhere.

  • thirdBreakfast@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    There’s a project called Filebrowser that allows you to edit text files in a web interface. You can just run that on the 192.168.1.2 machine. It’s easy to set up simple auth, and you can restrict it to the /data/ directory.