diff --git a/sky/provision/kubernetes/utils.py b/sky/provision/kubernetes/utils.py index 5150cc5860b..4c23a41161a 100644 --- a/sky/provision/kubernetes/utils.py +++ b/sky/provision/kubernetes/utils.py @@ -1234,7 +1234,8 @@ def construct_ssh_jump_command( '-o StrictHostKeyChecking=no ' '-o UserKnownHostsFile=/dev/null ' f'-o IdentitiesOnly=yes ' - f'-W %h:%p {ssh_jump_user}@{ssh_jump_ip}') + r'-W \[%h\]:%p ' + f'{ssh_jump_user}@{ssh_jump_ip}') if ssh_jump_port is not None: ssh_jump_proxy_command += f' -p {ssh_jump_port} ' if proxy_cmd_path is not None: