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
Then you when you connect to any JASMIN host (other than a login or transfer host), it will go via login-01:
129
+
130
+
{{<commanduser="user"host="localhost">}}
131
+
ssh sci-vm-01.jasmin.ac.uk
132
+
{{</command>}}
133
+
{{<commanduser="fred"host="sci-vm-01">}}
134
+
## now on sci server
135
+
{{</command>}}
136
+
137
+
If on your local machine you have also set up a domain search path for hostname lookups that includes `jasmin.ac.uk` so that you can use short hostnames e.g. `ssh sci-vm-01`, then you will also need to add the following lines so that ssh converts these to full hostnames -- otherwise the above wildcard will not match when you do this.
138
+
139
+
```config
140
+
CanonicalizeHostname yes
141
+
CanonicalDomains jasmin.ac.uk
142
+
```
143
+
117
144
This sort of configuration is useful for connections needed by remote editing/development tools such
118
145
as VSCode. The example above relies on having your key loaded locally in an ssh-agent.
0 commit comments