Atom Editor Remote FTP: Mask passwords with quotation marks


Share it: facebookTwitter | LinkedIn

Today I had the case that a password for an FTP server contained quotation marks. It is actually logical that the JSON configuration of the remote FTP plugin cannot process quotation marks. I didn't pay attention to this in the heat of the moment and got the following error message.

Atom Editor Remote-FTP Error Message

Reason: The quotes in the password

My colleague wanted to change the password right away, but it can also be done much easier using the usual technique for masking quotation marks in JSON.

Here is an Atom Remote FTP standard configuration, which contains the password with the quotation marks in line 5:

{
    "protocol": "ftp",
    "host": "ftp.myserver.com",
    "user": "user@myserver.com",
    "pass": "FSF"c!"6s/E"V",
    "promptForPass": false,
}

Here's the same configuration with masked quotes

{
    "protocol": "ftp",
    "host": "ftp.myserver.com",
    "user": "user@myserver.com",
    "pass": "FSF\"c!\"6s/E\"V",
    "promptForPass": false,
}

Conclusion

Of course, none of this is rocket science! But it may help one or the other who is not getting the idea that the special characters are the problem ;-)

Further information on the topic can be found here:

Finger pointing at you!

WE WANT YOU!

Your are a web design expert and you like writing articles?

JOIN US


Write comment

* These fields are required

Comments

No Comments


Share it: facebookTwitter | LinkedIn
100% anonymous web host