Skip to content

Commit bdc7721

Browse files
committed
Fix typo in SSH documentation.
1 parent aedaeba commit bdc7721

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/content/tutorials/connect-ssh.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
lastmod: 2019-08-01
2+
lastmod: 2021-04-22
33
date: 2019-07-30
44
menu:
55
main:
@@ -99,10 +99,8 @@ using (sshClient)
9999
Password = databasePassword,
100100
};
101101

102-
using (var connection = new MySqlConnection(csb.ConnectionString))
103-
{
104-
connection.Open();
105-
}
102+
using var connection = new MySqlConnection(csb.ConnectionString);
103+
connection.Open();
106104
}
107105
```
108106

@@ -115,7 +113,7 @@ is reachable from the SSH Server, but not from the client computer), use the fol
115113
var sshServer = "your ssh server";
116114
var sshUserName = "your SSH user name";
117115
var sshPassword = "your SSH password";
118-
var databaseServer = "your ssh server";
116+
var databaseServer = "your database server";
119117
var databaseUserName = "your database user name";
120118
var databasePassword = "your database password";
121119

@@ -130,9 +128,7 @@ using (sshClient)
130128
Password = databasePassword,
131129
};
132130

133-
using (var connection = new MySqlConnection(csb.ConnectionString))
134-
{
135-
connection.Open();
136-
}
131+
using var connection = new MySqlConnection(csb.ConnectionString);
132+
connection.Open();
137133
}
138134
```

0 commit comments

Comments
 (0)