Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 02c209a

Browse files
committed
Use coder.<env> to prevent collision with sftp
1 parent f9c0930 commit 02c209a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/coder/config_ssh.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (cmd *configSSHCmd) Run(fl *pflag.FlagSet) {
106106
fmt.Printf("An auto-generated ssh config was written to %q\n", cmd.filepath)
107107
fmt.Printf("Your private ssh key was written to %q\n", cmd.privateKeyFilepath)
108108
fmt.Println("You should now be able to ssh into your environment")
109-
fmt.Printf("For example, try running\n\n\t$ ssh coder:%s\n\n", envs[0].Name)
109+
fmt.Printf("For example, try running\n\n\t$ ssh coder.%s\n\n", envs[0].Name)
110110
}
111111

112112
func (cmd *configSSHCmd) writeSSHKey(ctx context.Context, client *entclient.Client) error {
@@ -133,7 +133,7 @@ func (cmd *configSSHCmd) makeNewConfigs(userName string, envs []entclient.Enviro
133133

134134
func (cmd *configSSHCmd) makeConfig(userName, envName string) string {
135135
return fmt.Sprintf(
136-
`Host coder:%s
136+
`Host coder.%s
137137
HostName %s
138138
User %s-%s
139139
StrictHostKeyChecking no

0 commit comments

Comments
 (0)