Community
    • Login

    File creation differes (Notepad++ & Winscp) vs Nano under SSH ??

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 648 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R. KroellsR
      R. Kroells
      last edited by

      Hello

      I created a “config.gateway.json” with some rules that was created with Notepad++ that was not recognised by my Unifi Linux Controller due to some unkown issue.

      I manage to get it fixed by just Cut & Pasting the Same rules straight into my SSH Nano Editor and the Controller accepts the created File.

      Is this bug in Notepad++ doing something to the file, or rather a SCP file transfere problem in WinSCP?

      1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        My immediate guess would be line endings (assuming you are creating your file in Notepad++ and then transferring to a linux box via WinSCP). You can solve this either by setting WinSCP to transfer in ASCII mode, or you can change the line ending in Notepad++ before you save the file in Notepad++: Edit > EOL Conversion > Unix (LF).

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors