Sign in

SFTP connection error (Password not stored/used) – workaround

  • This topic has 1 reply, 2 voices, and was last updated 3 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2855
    Avatar photo[anonymous]

    The following workaround works for me:

    1. Close application publii
    2. Edit’documents/Publii/sites/yoursitename/input/config/site.config.json’:

      “deployment”: {
      “protocol”: “sftp”,
      “relativeUrls”: false,

      “password”: “publii and-here-is-your-sitename”, <— replace this in: “password”: “your-sftp-password”,
      “askforpassword”: false,

    3. Save ‘documents/Publii/sites/yoursitename/input/config/site.config.json’
    4. Start application Publii
    5. Close application Publii without any changes
    6. Start application Publii again and sync with your website.

    Hope that helps somebody.

    🙂

    #2896
    Avatar photoTomasz Dziuda

    Saving a password in the site.config.json file is a very bad idea – that’s why we store only publi-SITE_NAME value which is used to bind a password with keychain / OS password storage.

    If you lost your password in some way – please just provide the password again in the Publii UI.

    --
    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!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.