Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

fixed ssh key error to better reflect its state.#139

Merged
cmoog merged 2 commits intocoder:masterfromKevinEdry:fix-sshkey-error
Oct 17, 2020
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletionsinternal/cmd/configssh.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -130,11 +130,12 @@ func configSSH(configpath *string, remove *bool) func(cmd *cobra.Command, _ []st
}
err = writeSSHKey(ctx, client, privateKeyFilepath)
if err != nil {
return xerrors.Errorf("fetch and write ssh key: %w", err)
fmt.Printf("Your private ssh key already exists at \"%s\"\n", privateKeyFilepath)
} else {
fmt.Printf("Your private ssh key was written to \"%s\"\n", privateKeyFilepath)
}

fmt.Printf("An auto-generated ssh config was written to \"%s\"\n", *configpath)
fmt.Printf("Your private ssh key was written to \"%s\"\n", privateKeyFilepath)
fmt.Println("You should now be able to ssh into your environment")
fmt.Printf("For example, try running\n\n\t$ ssh coder.%s\n\n", envs[0].Name)
return nil
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp