Not able to change the settings.php
Drupal removes "write" permission from settings.php, so to edit it, you need to give this permission back.

SSH

chmod u+w sites/default/settings.php


FTP, SFTP and alike

Use your cilent, and just tick appropriate checkbox. Like this: