SFTP server is not connecting. Showing error code (getConnection: read ECONNRESET)

Describe the problem/error/question

I have locally hosted n8n to test an automation. I was trying to connect SFTP node to SFTP server in my company side, but it is giving me this error(getConnection: read ECONNRESET).

What is the error message (if any)?

getConnection: read ECONNRESET

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.117.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (locallyhosted):
  • Operating system: Windows

Hi @Akshay_Raj1,

getConnection: read ECONNRESET

  • Firewall / IP: Make sure your IP is allowed on the server.
  • Port / Credentials: Check port, username, password/private key.
  • VPN: Connect via VPN if the server is internal.
  • Authentication method: Use the correct method (password vs private key).
  • Test via terminal:

sftp username@hostname -P port
If it fails in terminal too, the issue is on the server/network side.

Thanks!

1 Like

Hello @Websensepro

  • I have turned off Firewall and tried, but it didn’t worked.
  • I have used the credentials through WinSCP and its working fine.
  • Yes already connected to VPN.
  • I am using hostname, port number, username, password, (is it mandatory to fill passkey?)
  • it’s connecting.