I want to ssh to a server where authentication is done via a public key
ssh ssh_username@server_ipaddress -p port number
and after this, want to access a postgresql database
psql -h host_name -U user_name database_name
How to connect using any IDE
I have tried using
sudo ssh -L 6666:127.0.0.1:3306 <your_SSH_username>@<remoteserver.com>
What another approach can I use?