satiromarra / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
23 stars 3 forks source link

Cannot connect to GoDaddy SFTP #94

Open EarthmanWeb opened 9 months ago

EarthmanWeb commented 9 months ago

Do you read the FAQ?

Describe the bug

Using the exact same credentials, I can connect from a local Filezilla instance, but when using the VSCode plugin on Github Codespaces, using same credentials, it continues to provide Timeout Error:

[100p.b21.mwp.accessdomain.com]: Timed out while waiting for handshake

I have tried with and without the 'algorithms' setting mentioned in your FAQ, the same error occurs.

I tried using custom timeout, it does not help.

I have tried 'openSsh' set to true, and false, same error.

Can you please tell me why this won't connect to GoDaddy, when it does in Filezilla?

Expected behavior

Should connect the same as in Filezilla, using same configuration

Desktop (please complete the following information):

Extension Logs from Startup - required

Logs for Satiro Marra SFTP plugin in VSCode in Github Codespace: (fails - this times out)

[2024-01-04 05:02:12] [info] .env not exists
[2024-01-04 05:02:12] [info] config at / {"remotePath":"/home/djOCy0MVl=am5k/html/","uploadOnSave":true,"ignoreRealPath":false,"useTempFile":false,"openSsh":true,"downloadOnOpen":false,"ignore":["wp-includes","wp-admin",".ddev","node_modules",".wpcs","vendor"],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"remoteExplorer":{"order":0},"name":"GoDaddy Riverwood LIVE","host":"100p.b21.mwp.accessdomain.com","port":22,"username":"******","password":"******","autoDelete":true,"watcher":{"files":"wp-content/themes/**/*.{js,css,map,min.css,min.js,css.map,min.css.map}","autoUpload":true,"autoDelete":true},"algorithms":{"kex":["ecdh-sha2-nistp256","ecdh-sha2-nistp384","ecdh-sha2-nistp521"],"cipher":["aes128-gcm","aes128-gcm@openssh.com","aes256-gcm","aes256-gcm@openssh.com","aes128-cbc","aes192-cbc","aes256-cbc","aes128-ctr","aes192-ctr","aes256-ctr"],"serverHostKey":["ssh-rsa","ssh-dss","ssh-ed25519","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","rsa-sha2-256","rsa-sha2-512"],"hmac":["hmac-sha2-256","hmac-sha2-512"]},"context":"/","profiles":{}}
[2024-01-04 05:02:12] [debug] Custom crypto binding not available
[2024-01-04 05:02:12] [debug] Local ident: 'SSH-2.0-ssh2js1.13.0'
[2024-01-04 05:02:12] [debug] Client: Trying 100p.b21.mwp.accessdomain.com on port 22 ...
[2024-01-04 05:02:22] [debug] Outbound: Sending DISCONNECT (11)
[2024-01-04 05:02:22] [debug] Socket closed

Logs for Filezilla (successful - this works):

Trace:          CControlSocket::SendNextCommand()
Trace:          CSftpConnectOpData::Send() in state 0
Status:         Connecting to 100p.b21.mwp.accessdomain.com...
Trace:          Going to execute /Applications/FileZilla Pro.app/Contents/MacOS//fzsftp
Response:   fzSftp started, protocol_version=11
Trace:          CSftpConnectOpData::ParseResponse() in state 0
Trace:          CControlSocket::SendNextCommand()
Trace:          CSftpConnectOpData::Send() in state 3
Command:    open "djOCy0MVl=am5k@100p.b21.mwp.accessdomain.com" 22
Trace:          Looking up host "100p.b21.mwp.accessdomain.com" for SSH connection
Trace:          Connecting to 150.62.172.93 port 22
Trace:          We claim version: SSH-2.0-FileZilla_3.66.4
Trace:          Connected to 150.62.172.93
Trace:          Remote version: SSH-2.0-OpenSSH_7.4
Trace:          Using SSH protocol version 2
Trace:          Doing ECDH key exchange with curve Curve25519 and hash SHA-256 (NEON accelerated)
Trace:          Server also has ecdsa-sha2-nistp256 host key, but we don't know it
Trace:          Host key fingerprint is:
Trace:          ssh-ed25519 255 SHA256:93OwcNdRPxQ7bSegQ+KjSqzYPbh6dMm5/V1xaNbaLWA
Trace:          Initialised AES-256 GCM outbound encryption
Trace:          Initialised AES256 GCM outbound MAC algorithm (in ETM mode) (required by cipher)
Trace:          Initialised AES-256 GCM inbound encryption
Trace:          Initialised AES256 GCM inbound MAC algorithm (in ETM mode) (required by cipher)
Trace:          Pageant is running. Requesting keys.
Trace:          Failed to get reply from Pageant
Status:         Using username "djOCy0MVl=am5k". 
Command:    Pass: **************
Trace:          Sent password
Trace:          Access granted
Trace:          Opening main session channel
Trace:          Opened main channel
Trace:          Started a shell/command
Status:         Connected to 100p.b21.mwp.accessdomain.com
Trace:          Remote working directory is /home/djOCy0MVl=am5k/html
Trace:          CSftpConnectOpData::ParseResponse() in state 3
Trace:          CControlSocket::ResetOperation(0)
Trace:          CSftpConnectOpData::Reset(0) in state 3
Trace:          CFileZillaEnginePrivate::ResetOperation(0)
Trace:          CControlSocket::SendNextCommand()
Trace:          CSftpListOpData::Send() in state 0
Status:         Retrieving directory listing...
Trace:          CSftpChangeDirOpData::Send() in state 0
Trace:          CSftpChangeDirOpData::Send() in state 1
Command:    pwd
Response:   Current directory is: "/home/djOCy0MVl=am5k/html"
Trace:          CSftpChangeDirOpData::ParseResponse() in state 1
Trace:          CControlSocket::ResetOperation(0)
Trace:          CSftpChangeDirOpData::Reset(0) in state 1
Trace:          CSftpListOpData::SubcommandResult(0) in state 1
Trace:          CControlSocket::SendNextCommand()
Trace:          CSftpListOpData::Send() in state 2
Trace:          CSftpListOpData::Send() in state 3
Command:    ls
Status:         Listing directory /home/djOCy0MVl=am5k/html
Trace:          CSftpListOpData::ParseResponse() in state 3
Trace:          CControlSocket::ResetOperation(0)
Trace:          CSftpListOpData::Reset(0) in state 3
Status:         Directory listing of "/home/djOCy0MVl=am5k/html" successful
Trace:          CFileZillaEnginePrivate::ResetOperation(0)
EarthmanWeb commented 9 months ago

This issue is specific to VSCode in Codespace, and the GoDaddy 'Managed WordPress' servers.

It works fine for GoDaddy on VSCode in a local environment... ...and it works fine with other servers (Pantheon SFTP, namecheap) in Vscode in Codespaces.

But I want to be able to use your plugin in Codespaces, for GoDaddy managed WordPress hosting, too, because it is the best!

Can you please help determine what might be required? Maybe there is some kind of Codespace config that is needed?

satiromarra commented 6 months ago

@EarthmanWeb I don't know how GitHub codespaces works, I would have to document myself and perform tests to know what the problem is. As I see in the log you attach, it seems that it can't solve the domain, it's rare since filezilla can.