Skip to content
Draft
Changes from all commits
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
7 changes: 1 addition & 6 deletions pkg/cmd/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,7 @@ func runRegister(ctx context.Context, t *terminal.Terminal, s RegisterStore, opt
// Determine if SSH access should be enabled
enableSSH := false
sshPortForGrant := int32(0)
if opts.interactive {
enableSSH = deps.prompter.ConfirmYesNo("Would you like to enable SSH access to this device?")
if enableSSH {
sshPortForGrant = 0 // prompt for port
}
} else if opts.sshPort != 0 {
if opts.sshPort != 0 {
enableSSH = true
sshPortForGrant = opts.sshPort
}
Expand Down
Loading