enabled sftp private key support (instead of password)

this is the code to make #9182 work
Same here, use `!empty($this->keyfile)`