You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whether to use TLS or not is detected by **sslmode=require** in the connection string
30
30
31
+
### SSH Connection
31
32
33
+
For the sake of optimization - the SSH feature is not included by default.
34
+
35
+
If you are planning to use connections with SSH tunneling, please add a feature
36
+
37
+
```toml
38
+
[dependencies]
39
+
my-postgres = { tag = "xxx", git = "https://github.com/MyJetTools/my-postgres.git", features = [
40
+
"with-ssh",
41
+
] }
42
+
```
43
+
44
+
It is possible to connect to a PostgreSQL database through an SSH tunnel by adding the `ssh` parameter to the connection string. The format is `ssh=user@sshhost:22` where:
45
+
-`user` is the SSH username
46
+
-`sshhost` is the SSH server hostname or IP address
0 commit comments