File creation differes (Notepad++ & Winscp) vs Nano under SSH ??
-
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?
-
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).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login