Skip to main content

Configuring WinSCP

PuTTY Configuration

Host name: bitnami@<domain name> (or IP address if no domain is there). Port 22.

Config -> Connection -> SSH -> Auth -> set PPK file for authentication (convert the PEM key, from the Lightsail console, to PPK in PuTTYgen).

Config -> Connection -> SSH -> Tunnels -> forward a source port of your choice (e.g. 8888, 8887, etc) to localhost:80, required to connect to phpMyAdmin from local machine. Make sure each of your saved PuTTY sessions uses a different source port to avoid accidental conflicts.

WinSCP Configuration

Change connection protocol to SCP instead of SFTP.

In Advanced -> Environment -> SCP/Shell, change shell to "sudo su -", whilst using "bitnami" user for login. This is needed to make sure WinSCP has root permissions, or else it will get a lot of errors trying to perform file operations.

Set file mask to the following:

| .gitattributes; .gitignore; composer.lock; *.log; */vendor/; */temp-info-page/; */src/Config/Local/; */instructions/; */email-templates/; */src/DB/Sprocs/; */src/DB/Functions/; */lib/; */nbproject/; */logs/; */dbschema/; */cdn-error-pages/; */admin/; */privateuploads/; */tmpuploads/