diff --git a/nodejs/routes/render.js b/nodejs/routes/render.js index 037382b..78ce405 100644 --- a/nodejs/routes/render.js +++ b/nodejs/routes/render.js @@ -14,6 +14,10 @@ const values = { titleIcon: conf.environment !== 'production' ? '' : '', name: conf.name, logo: conf.logo, + // The SSH front door's port -- the dashboard's "quick jump" copy buttons + // need this to build a real, working `ssh ...` command (the web UI and + // SSH front door share a hostname but not a port). + sshPort: (conf.ssh && conf.ssh.listenPort) || 22, ...buildInfo, }; diff --git a/nodejs/views/dashboard.ejs b/nodejs/views/dashboard.ejs index de64525..8366985 100644 --- a/nodejs/views/dashboard.ejs +++ b/nodejs/views/dashboard.ejs @@ -28,6 +28,27 @@ +
+ Skip the picker: ssh <your-username>_-_<host-slug>@<this-jump-host>
+ connects straight to a host. Or just ssh <your-username>@<this-jump-host>
+ for the interactive picker.
+