+12
-10
lines changedFilter options
+12
-10
lines changed Original file line number Diff line number Diff line change
@@ -235,7 +235,7 @@ func (r *RootCmd) configSSH() *serpent.Command {
235
235
cmd := &serpent.Command{
236
236
Annotations: workspaceCommand,
237
237
Use: "config-ssh",
238
-
Short: "Add an SSH Host entry for your workspaces \"ssh coder.workspace\"",
238
+
Short: "Add an SSH Host entry for your workspaces \"ssh workspace.coder\"",
239
239
Long: FormatExamples(
240
240
Example{
241
241
Description: "You can use -o (or --ssh-option) so set SSH options to be used for all your workspaces",
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ SUBCOMMANDS:
18
18
completion Install or update shell completion scripts for the
19
19
detected or chosen shell.
20
20
config-ssh Add an SSH Host entry for your workspaces "ssh
21
-
coder.workspace"
21
+
workspace.coder"
22
22
create Create a workspace
23
23
delete Delete a workspace
24
24
dotfiles Personalize your workspace by applying a canonical
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ coder v0.0.0-devel
3
3
USAGE:
4
4
coder config-ssh [flags]
5
5
6
-
Add an SSH Host entry for your workspaces "ssh coder.workspace"
6
+
Add an SSH Host entry for your workspaces "ssh workspace.coder"
7
7
8
8
- You can use -o (or --ssh-option) so set SSH options to be used for all
9
9
your
Original file line number Diff line number Diff line change
@@ -1097,7 +1097,7 @@
1097
1097
},
1098
1098
{
1099
1099
"title": "config-ssh",
1100
-
"description": "Add an SSH Host entry for your workspaces \"ssh coder.workspace\"",
1100
+
"description": "Add an SSH Host entry for your workspaces \"ssh workspace.coder\"",
1101
1101
"path": "reference/cli/config-ssh.md"
1102
1102
},
1103
1103
{
Original file line number Diff line number Diff line change
@@ -103,9 +103,8 @@ jobs:
103
103
- name: Create a test workspace and run some example commands
104
104
run: |
105
105
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} test-${{ steps.name.outputs.version_name }} --yes
106
-
coder config-ssh --yes
107
106
# run some example commands
108
-
ssh coder.test-${{ steps.name.outputs.version_name }} -- make build
107
+
coder ssh test-${{ steps.name.outputs.version_name }} -- make build
109
108
110
109
- name: Delete the test workspace
111
110
if: always()
Original file line number Diff line number Diff line change
@@ -215,6 +215,7 @@ export const AgentRow: FC<AgentRowProps> = ({
215
215
<AgentSSHButton
216
216
workspaceName={workspace.name}
217
217
agentName={agent.name}
218
+
workspaceOwnerUsername={workspace.owner_name}
218
219
/>
219
220
)}
220
221
{proxy.preferredWildcardHostname !== "" &&
Original file line number Diff line number Diff line change
@@ -22,15 +22,17 @@ import { docs } from "utils/docs";
22
22
interface AgentSSHButtonProps {
23
23
workspaceName: string;
24
24
agentName: string;
25
+
workspaceOwnerUsername: string;
25
26
}
26
27
27
28
export const AgentSSHButton: FC<AgentSSHButtonProps> = ({
28
29
workspaceName,
29
30
agentName,
31
+
workspaceOwnerUsername,
30
32
}) => {
31
33
const paper = useClassName(classNames.paper, []);
32
34
const { data } = useQuery(deploymentSSHConfig());
33
-
const sshPrefix = data?.hostname_prefix;
35
+
const sshSuffix = data?.hostname_suffix;
34
36
35
37
return (
36
38
<Popover>
@@ -54,7 +56,7 @@ export const AgentSSHButton: FC<AgentSSHButtonProps> = ({
54
56
/>
55
57
<SSHStep
56
58
helpText="Connect to the agent:"
57
-
codeExample={`ssh ${sshPrefix}${workspaceName}.${agentName}`}
59
+
codeExample={`ssh ${workspaceName}.${agentName}.${workspaceOwnerUsername}.${sshSuffix}`}
58
60
/>
59
61
</Stack>
60
62
</ol>
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4