If you want to open an SSH tunnel in the background, use the -N and -f switches:
ssh -Nf -L2121:localhost:21 user@host
authenticationencryptionsecurityshellsshtunnel
If you intend to use passwords for local database authentication, you'll need to make an adjustment to the pg_hba.conf file:
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD #local all all ident sameuser local all all password
authenticationidentlocalpasswordpostgresqlpsql
If you need to make sure your password is working for a particular domain, try running a program as that domain\username.
If the app runs, your auth pair works.
Note: If you need to enable 'Run As' on your system, this Microsoft article will be helpful.
authenticationdomainpasswordwindows
A way to test whether your domain login credentials are working is via net use on the commandline like so:
c:\> net use \\<computername>\IPC$ /user:<domain>/<username> *
The * forces it to ask for your password. Otherwise, you can replace * with your password to do it all at once. Also, net use supports smartcard authentication, etc.
Thanks to Scott Morrison (a.k.a. "Plaid") for the tip!
authenticationcommandsnetsmartcardwindows