Skip to content

Commit b642554

Browse files
committed
Fix port suffix in ssh client
1 parent dfdca6d commit b642554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/ssh/ssh_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func NewSSHClient(ctx context.Context, config SSHConfig) (*SSHClient, error) {
8888
host = fmt.Sprintf("[%s]", config.Host)
8989
}
9090

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

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

0 commit comments

Comments
 (0)