Skip to content

Commit

Permalink
[k8s] Fix IPv6 ssh support (#4497)
Browse files Browse the repository at this point in the history
* Add limits only if they exist

* Fix ipv6 support

* Fix ipv6 support
  • Loading branch information
romilbhardwaj authored Dec 20, 2024
1 parent a73a9cb commit d48523a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sky/provision/kubernetes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d48523a

Please sign in to comment.