diff --git a/cli/configssh.go b/cli/configssh.go
index e3e168d2b1..cfea6b377f 100644
--- a/cli/configssh.go
+++ b/cli/configssh.go
@@ -235,7 +235,7 @@ func (r *RootCmd) configSSH() *serpent.Command {
cmd := &serpent.Command{
Annotations: workspaceCommand,
Use: "config-ssh",
- Short: "Add an SSH Host entry for your workspaces \"ssh coder.workspace\"",
+ Short: "Add an SSH Host entry for your workspaces \"ssh workspace.coder\"",
Long: FormatExamples(
Example{
Description: "You can use -o (or --ssh-option) so set SSH options to be used for all your workspaces",
diff --git a/cli/testdata/coder_--help.golden b/cli/testdata/coder_--help.golden
index f3c6f56a7a..1b2dbcf250 100644
--- a/cli/testdata/coder_--help.golden
+++ b/cli/testdata/coder_--help.golden
@@ -18,7 +18,7 @@ SUBCOMMANDS:
completion Install or update shell completion scripts for the
detected or chosen shell.
config-ssh Add an SSH Host entry for your workspaces "ssh
- coder.workspace"
+ workspace.coder"
create Create a workspace
delete Delete a workspace
dotfiles Personalize your workspace by applying a canonical
diff --git a/cli/testdata/coder_config-ssh_--help.golden b/cli/testdata/coder_config-ssh_--help.golden
index 86f38db99e..e2b03164d9 100644
--- a/cli/testdata/coder_config-ssh_--help.golden
+++ b/cli/testdata/coder_config-ssh_--help.golden
@@ -3,7 +3,7 @@ coder v0.0.0-devel
USAGE:
coder config-ssh [flags]
- Add an SSH Host entry for your workspaces "ssh coder.workspace"
+ Add an SSH Host entry for your workspaces "ssh workspace.coder"
- You can use -o (or --ssh-option) so set SSH options to be used for all
your
diff --git a/docs/manifest.json b/docs/manifest.json
index 3f0ccf24ca..c8901c89b1 100644
--- a/docs/manifest.json
+++ b/docs/manifest.json
@@ -1097,7 +1097,7 @@
},
{
"title": "config-ssh",
- "description": "Add an SSH Host entry for your workspaces \"ssh coder.workspace\"",
+ "description": "Add an SSH Host entry for your workspaces \"ssh workspace.coder\"",
"path": "reference/cli/config-ssh.md"
},
{
diff --git a/docs/reference/cli/config-ssh.md b/docs/reference/cli/config-ssh.md
index c9250523b6..607aa86849 100644
--- a/docs/reference/cli/config-ssh.md
+++ b/docs/reference/cli/config-ssh.md
@@ -1,7 +1,7 @@
# config-ssh
-Add an SSH Host entry for your workspaces "ssh coder.workspace"
+Add an SSH Host entry for your workspaces "ssh workspace.coder"
## Usage
diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md
index 2106374eba..d72790fc3b 100644
--- a/docs/reference/cli/index.md
+++ b/docs/reference/cli/index.md
@@ -41,7 +41,7 @@ Coder — A tool for provisioning self-hosted development environments with Terr
| [users
](./users.md) | Manage users |
| [version
](./version.md) | Show coder version |
| [autoupdate
](./autoupdate.md) | Toggle auto-update policy for a workspace |
-| [config-ssh
](./config-ssh.md) | Add an SSH Host entry for your workspaces "ssh coder.workspace" |
+| [config-ssh
](./config-ssh.md) | Add an SSH Host entry for your workspaces "ssh workspace.coder" |
| [create
](./create.md) | Create a workspace |
| [delete
](./delete.md) | Delete a workspace |
| [favorite
](./favorite.md) | Add a workspace to your favorites |
diff --git a/docs/tutorials/testing-templates.md b/docs/tutorials/testing-templates.md
index 45250a6a71..1ab617161d 100644
--- a/docs/tutorials/testing-templates.md
+++ b/docs/tutorials/testing-templates.md
@@ -103,9 +103,8 @@ jobs:
- name: Create a test workspace and run some example commands
run: |
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} test-${{ steps.name.outputs.version_name }} --yes
- coder config-ssh --yes
# run some example commands
- ssh coder.test-${{ steps.name.outputs.version_name }} -- make build
+ coder ssh test-${{ steps.name.outputs.version_name }} -- make build
- name: Delete the test workspace
if: always()
diff --git a/site/src/modules/resources/AgentRow.tsx b/site/src/modules/resources/AgentRow.tsx
index d9fa066342..d7545ff5c8 100644
--- a/site/src/modules/resources/AgentRow.tsx
+++ b/site/src/modules/resources/AgentRow.tsx
@@ -215,6 +215,7 @@ export const AgentRow: FC = ({
)}
{proxy.preferredWildcardHostname !== "" &&
diff --git a/site/src/modules/resources/SSHButton/SSHButton.tsx b/site/src/modules/resources/SSHButton/SSHButton.tsx
index 8b36f2d3b6..8fb4c3025c 100644
--- a/site/src/modules/resources/SSHButton/SSHButton.tsx
+++ b/site/src/modules/resources/SSHButton/SSHButton.tsx
@@ -22,15 +22,17 @@ import { docs } from "utils/docs";
interface AgentSSHButtonProps {
workspaceName: string;
agentName: string;
+ workspaceOwnerUsername: string;
}
export const AgentSSHButton: FC = ({
workspaceName,
agentName,
+ workspaceOwnerUsername,
}) => {
const paper = useClassName(classNames.paper, []);
const { data } = useQuery(deploymentSSHConfig());
- const sshPrefix = data?.hostname_prefix;
+ const sshSuffix = data?.hostname_suffix;
return (
@@ -54,7 +56,7 @@ export const AgentSSHButton: FC = ({
/>