Skip to content

Commit

Permalink
Fix port suffix in ssh client
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-hb committed Feb 20, 2025
1 parent dfdca6d commit b642554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/ssh/ssh_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewSSHClient(ctx context.Context, config SSHConfig) (*SSHClient, error) {
host = fmt.Sprintf("[%s]", config.Host)
}

host += strconv.Itoa(config.Port)
host += ":" + strconv.Itoa(config.Port)

client, err := ssh.Dial("tcp", host, sshConfig)
if err != nil {
Expand Down

0 comments on commit b642554

Please sign in to comment.