liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 260 forks source link

Login incorrect on FTP connection #760

Closed vinyloup closed 4 years ago

vinyloup commented 4 years ago

Do you read the FAQ?

Describe the bug When trying to connect, I get the error "Login incorrect". This connection work fine with FileZilla with the same parameters. My sftp.json configuration :
{ "name": "ftp://toto.titi@ftpperso.free", "host": "ftpperso.free.fr", "protocol": "ftp", "port": 21, "username": "toto.titi", "remotePath": "/dev", "uploadOnSave": false }

To Reproduce Simple every connect to the server

Expected behavior Connect without error message

Screenshots

Desktop (please complete the following information):

Extension Logs from Startup - required 04-22 21:19:47] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [04-22 21:19:47] [debug] register command "Config" from "./commandConfig.ts" [04-22 21:19:47] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [04-22 21:19:47] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [04-22 21:19:47] [debug] register command "Set Profile" from "./commandSetProfile.ts" [04-22 21:19:47] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [04-22 21:19:47] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [04-22 21:19:47] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [04-22 21:19:47] [debug] register command "Diff" from "./fileCommandDiff.ts" [04-22 21:19:47] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [04-22 21:19:47] [debug] register command "Download" from "./fileCommandDownload.ts" [04-22 21:19:47] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [04-22 21:19:47] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [04-22 21:19:47] [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [04-22 21:19:47] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [04-22 21:19:47] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [04-22 21:19:47] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [04-22 21:19:47] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [04-22 21:19:47] [debug] register command "List" from "./fileCommandList.ts" [04-22 21:19:47] [debug] register command "List All" from "./fileCommandListAll.ts" [04-22 21:19:47] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [04-22 21:19:47] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [04-22 21:19:47] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [04-22 21:19:47] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [04-22 21:19:47] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [04-22 21:19:47] [debug] register command "Upload" from "./fileCommandUpload.ts" [04-22 21:19:47] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [04-22 21:19:47] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [04-22 21:19:47] [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [04-22 21:19:47] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [04-22 21:19:47] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [04-22 21:19:47] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [04-22 21:19:47] [info] config at /home/toto.titi/Documents/Python/mhost-py {"remotePath":"/dev/","uploadOnSave":false,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"ftp://toto.titi@ftpperso.free","host":"ftpperso.free.fr","port":21,"username":"**"} [04-22 21:20:53] [debug] < '220 Serveur de mise a jour des pages perso de Free.fr version [Oct 30 2019 18:30:59]\r\n' [04-22 21:20:53] [debug] > USER toto.titi [04-22 21:20:53] [debug] < '331 Password required for toto.titi.\r\n' [04-22 21:20:53] [debug] > PASS ** [04-22 21:20:53] [debug] < '530 Login incorrect. [671]\r\n' [04-22 21:20:53] [debug] < '421 Service not available, closing control connection.\r\n'

as1414 commented 4 years ago

Not sure if this will help, but perhaps FZ is using TLS. Could try: https://github.com/liximomo/vscode-sftp/issues/499

vinyloup commented 4 years ago

Hello as1414, Thank's for your help but it's not the solution. I test FZ without the support of TLS and the connexion work fine. I alos test with other FTP client without TLS and it also worked. I ended up giving up using the extension vscode-sftp and use another solution.

kieran-osgood commented 4 years ago

@vinyloup I know you've closed this, but I was having the same issue (I could connect with the credentials in transmit/filezilla but not through the extension) this comment: https://github.com/liximomo/vscode-sftp/issues/702#issuecomment-597865032 helped, basically in vscode press cmd+shift+p -> type terminal:select default shell and select the same as your server (for me I was using zsh, switched to bash and it worked!)

vinyloup commented 4 years ago

Thank you very much, KieranO547. I will test because it can also be useful to avoid other problems. Be safe!

nicknijenhuis commented 3 years ago

For me it was solved by not using an = sign in my password. Could be that there is an encoding issue here.