Sftp unable to login persistent errors either with ssh key or password
- This topic has 2 replies, 2 voices, and was last updated 5 months, 2 weeks ago by .
- August 5, 2021 at 3:54 pm #6124NitaaiKumar
Till now I was using Publii with normal ftp on a cdn storage, where the upload worked always.
Now I wanted to move to my own server as some countries are blocking that cdn’s servers.
On own servers, normal sftp clients are connecting fine with both ssh key or password. But Publii always says, “unable to connect”.
It connected for sometime. Then started giving errors for the ssh key. Then I tried with password. Then it started giving login errors with the password too and now it does not work on any of my own servers.
Same login problem on own servers with both duplicated and new sites too. Latest publii and latest mac os here.
Quite frustrating this small but critical thing (sftp upload) with such an otherwise excellent piece of software.
Guess I will have to go back the simple ftp cdn hosting as I like Publii too much otherwise.
Error: global-error-handler: Unexpected error: read ETIMEDOUT
at fmtError (/Applications/Publii.app/Contents/Resources/app.asar/node_modules/ssh2-sftp-client/src/utils.js:53:18)
at Client.<anonymous> (/Applications/Publii.app/Contents/Resources/app.asar/node_modules/ssh2-sftp-client/src/index.js:47:15)
at Client.emit (events.js:315:20)
at Client.EventEmitter.emit (domain.js:483:12)
at Socket.<anonymous> (/Applications/Publii.app/Contents/Resources/app.asar/node_modules/ssh2/lib/client.js:307:10)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)August 5, 2021 at 4:39 pm #6125NitaaiKumar
Ok after thorough testing, deleting all the UUIDs, narrowed down the problem to SSH keys. Whichever provider stack I use on my self-hosted servers, the SSH key logins are consitently not working (unable to connect), even after generating new keys. SFTP passwords are working.
After deleting the UUIDs for the previously duplicated sites, now the login works for each of them independently with the new Publii version.August 8, 2021 at 2:15 pm #6146Tomasz Dziuda
Maybe you are using ssh-keys format which is incompatible with Publi SSH library? For me ssh keys are working fine – I have used it many times for the test purpose on my own VPS.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
- You must be logged in to reply to this topic.