SFTP connection refused
Check the SFTP switch, the allowed IP list, the password, the host and port, and Git mode when an SFTP connection or upload fails.
SFTP and SSH credentials live on the site's Info tab, under Primary SFTP and SSH user. Every environment has its own, so staging credentials do not open live. Work through the checks in order.
Why is the connection refused or timing out?
- SFTP is off. SFTP can be switched off per environment, and the connection is refused before any password is checked. Turn it on, or call
PUT /v1/environments/{id}/sftp-accounts/status. - Wrong host, port, or username. Read them on Info. The port is not 22. Download the FTP client config file there, or call
GET /v1/environments/{id}/ssh/config. - Your address is not allowed, or is blocked. Edit the IP allowlist on Info. Your address changes when you move between home, the office, and a VPN. Read the list with
GET /v1/environments/{id}/ssh/allowed-ips. Five failed logins from one address within ten minutes also block that address for an hour, so wait before you retry. - The password expired or was rotated. Info shows the password expiration. Choose Show the password to read or rotate it. WP Waterfall asks for your account password first and hides the secret after a minute. User Activity shows who rotated it and when.
- Password sign-in is off. Add an SSH key with
POST /v1/environments/{id}/ssh-keys.
If the host key warning appears instead, see SSH says the host key has changed.
Why can I connect but not upload code?
Code folders are read only in Git mode, and live is always in Git mode, so an upload to wp-content/plugins, wp-content/themes, or any other code folder fails with "Permission denied". Uploads stay writable. Push the files with Git, or switch staging or a preview to SFTP mode. See How Git deploys work and Git access.
Why does an extra SFTP account see one folder?
Each extra SFTP account gets one folder, its root directory, so everything outside it is out of reach. Use the primary user for the whole site. What each kind of extra account may write is in Extra SFTP accounts. If the server answers that it needs an update first (409 agent_too_old), try again after the update. If a new user cannot sign in at all, send support the username and the job ID: the job log says when the server may refuse the folder.
What if I lost the password?
Rotate it. Rotation gives you a new password and ends the old one. Rotation, the SFTP switch, and allowlist changes each run as a job and take effect when the job finishes.
Still stuck
Message Nami from the chat button with the site name, the environment, the username, the exact error line from your client, the address you connect from, and the request ID or job ID. Never send the password.
Related
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.