jackc / tern

The SQL Fan's Migrator
MIT License
1k stars 71 forks source link

ssh-tunnel port not being respected from config #83

Open michaelknowles opened 1 year ago

michaelknowles commented 1 year ago

Config

[database]
host = localhost
port = 5432
database = postgres
user = postgres

[ssh-tunnel]
host = localhost
port = 2222
user = vagrant
tern migrate
Unable to connect to PostgreSQL:
  dial tcp 127.0.0.1:22: connect: connection refused

Would expect to see 127.0.0.1:2222 if the port was being used from the config. Using Mac if it matters.

tern version
tern v2.1.1
michaelknowles commented 1 year ago

84