How to connect to FTP using VS Code?

Username (e.g. epiz_XXX) or Website URL

epiz_32077569

Error Message

How can I connect to InfinityFree server using FTP passive mode?

Other Information

I am new to FTP connections so I might be looking for an obious answer…

My main problem is that I want to connect to InfinityFree server using FTP via VS Code by using extension ftp-simple. While following the extensions instructions I don’t succeed in creating connection. I think the problem is because I am conecting with FTP active mode so thought of trying passive mode instead, but don’t know how to do it.

P.S. The extension is found here: https://www.youtube.com/watch?v=3jB2vdZb-_s

SOLVED!

When connecting I messed up settings for VS Codes extension FTP Simple.

When I set up my configuration like this it all worked:


[
	{
		"name": "localhost",
		"host": "ftpupload.net",
		"port": 21,
		"type": "ftp",
		"username": "epiz_232311",
		"password": "password123",
		"path": "/",
		"autosave": true,
		"confirm": true
	}
]
2 Likes

You can also try this with “secure”
I have no idea if it is secure, but maybe you can check logs or through the debugger



[
	{
		"name": "InfinityFree hosting - TLS secure",
		"host": "ftpupload.net",
		"port": 21,
		"type": "ftp",
		"username": "epiz_",
		"password": "12345",
		"path": "/htdocs",
		"confirm": true,
"secure" : true,
"secureOptions" : {"rejectUnauthorized": false, "secureProtocol" :"TLSv1_2_method"}
       

	}
]
2 Likes

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