This commit is contained in:
cmbrose 2022-06-10 12:38:10 -05:00
parent e16a8adb6f
commit ec58990715
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err e
startSshServerOpts := []func(*liveshare.StartSSHServerOptions){}
if shouldGenerateSSHKeys(args, opts) && sshContext.HasKeygen() {
keyPair, err := sshContext.GenerateSSHKey("codespaces", ssh.WithNoErrorOnExitingKey())
keyPair, err := sshContext.GenerateSSHKey("codespaces", ssh.WithNoErrorOnExistingKey())
if err != nil {
return fmt.Errorf("failed to generate ssh keys: %s", err)
}

View file

@ -41,7 +41,7 @@ type GenerateSSHKeyOptions struct {
promptPassphrase func() (string, error)
}
func WithNoErrorOnExitingKey() func(*GenerateSSHKeyOptions) {
func WithNoErrorOnExistingKey() func(*GenerateSSHKeyOptions) {
return func(o *GenerateSSHKeyOptions) {
o.noErrorOnExists = true
}