Skip to content

Commit

Permalink
fix(cmd): omit ssh command line port when empty or 22
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 2, 2023
1 parent 96ddc11 commit 6b2baa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func rootCommand(cfg *config.Config, s ssh.Session) *cobra.Command {
}

sshCmd := "ssh"
if port != "22" {
if port != "" && port != "22" {
sshCmd += " -p " + port
}

Expand Down

0 comments on commit 6b2baa9

Please sign in to comment.