Password Authentication
Configure your server to allow SSH password connections
To connect to a database over SSH using password authentication, your server must be configured to accept password logins.
Server Requirements
The following settings must be enabled in your SSH server configuration. These settings live in /etc/ssh/sshd_config, which exists on Linux and macOS servers (not Windows).
How to Enable Password Authentication
1. Open the SSH config file
Connect to your server and open the SSH daemon configuration file:
Or if you prefer vim:
2. Update the settings
Find and update each of these settings. They may be commented out (starting with #) or set to no. Change them to:
If a setting doesn't exist in the file, add it at the end.
3. Save and exit
In nano, press Ctrl + X, then Y, then Enter to save.
In vim, press Esc, type :wq, then press Enter.
4. Restart the SSH service
For the changes to take effect, restart the SSH daemon:
5. Verify the settings
You can confirm the settings are active by running:
You should see:
passwordauthentication yes
kbdinteractiveauthentication yes
usepam yes
Connecting in DB Pro
Once your server is configured:
- Create a new connection in DB Pro
- Enable SSH Tunnel
- Enter your SSH host, port (usually 22), and username
- Select Password as the authentication method
- Enter your SSH password
- Configure your database connection details
- Click Test Connection to verify everything works