# FTP node error "Non-anonymous sessions must use encryption"

**URL:** <https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496>\
**Category:** General\
**Created:** [29 May 2020 14:47 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496 "2020-05-29T14:47:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [29 May 2020 14:47 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/1 "2020-05-29T14:47:11Z")

</div>

Hi,

I'm trying to put a file from a local windows machine to an FTP site. I'm using the 'node-red-contrib-ftp  
' module.

I have setup the username and password correctly and I've confirmed with filezilla that I can connect from the local computer to the FTP site.

However, when I try to put using node-red it gives me an error "Non-anonymous sessions must use encryption"

I see a data connection encryption check box, I check it and update but doesn't seem to stick when I deploy.

Any idea's what I need to change?

I know my creds are correct and I am using port 21.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 May 2020 15:36 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/2 "2020-05-29T15:36:01Z")

</div>

Hi

[Which FTP node](https://flows.nodered.org/search?term=ftp&type=node) are you using?

Have you tried others?

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [29 May 2020 16:20 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/3 "2020-05-29T16:20:03Z")

</div>

I am using the '[https://flows.nodered.org/node/node-red-contrib-ftp](https://flows.nodered.org/node/node-red-contrib-ftp)' node

Also, I was able to fix it by editing the script,

I changed the default to true.

```auto
      'host': n.host || 'localhost',
      'port': n.port || 21,
      'secure': n.secure || false,

```

to

```auto
      'host': n.host || 'localhost',
      'port': n.port || 21,
      'secure': n.secure || true,

```

and it started to work now.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 May 2020 19:59 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/4 "2020-05-29T19:59:26Z")

</div>

> [@KevinPamu](#):
>
> Non-anonymous sessions must use encryption

If you are using plain FTP (not SFTP or FTPS) then the message is giving you a very important clue. That's so say that you will be sending your ID and Password in clear text to the server.

This may not be a big problem on a private home network but it is a massive problem over a public network and the Internet.

It would also be a big problem in an enterprise environment.

Also, you would want to make absolutely certain that you do not use the same password anywhere else - ever. (Good practice anyway of course).

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [29 May 2020 20:07 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/5 "2020-05-29T20:07:43Z")

</div>

@TotallyInformation Thank you for the information, this is just to update somethings on a FTP site. I understand the risks of it but the third party I am working with have it set up that way.

That being said, this is not sensitive information at all. Just some updates in a CSV file.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 May 2020 20:16 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/6 "2020-05-29T20:16:30Z")

</div>

You should also raise an issue against that node if you can as it’s obviously not handling that input option parameter correctly. ( it’s probably a true vs “true” (I’m guessing))

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [2 June 2020 19:12 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/7 "2020-06-02T19:12:40Z")

</div>

Will notify them about the issue. You are probably correct about true vs "true".

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 June 2020 19:12 UTC](https://discourse.nodered.org/t/ftp-node-error-non-anonymous-sessions-must-use-encryption/27496/8 "2020-06-16T19:12:41Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
