• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 661 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
    R. Kroells
    last edited by Oct 10, 2018, 12:49 PM

    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
    • P
      PeterJones
      last edited by Oct 10, 2018, 1:18 PM

      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
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors