Skip to content

Commit 7a8684a

Browse files
committed
Add port to docker host specifier
1 parent 3904df6 commit 7a8684a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ssh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main():
7272
try:
7373
if args.container:
7474
commands = {
75-
name: f"docker -H ssh://{pc.user}@{pc.hostname} exec -it {args.container} /bin/bash"
75+
name: f"docker -H ssh://{pc.user}@{pc.hostname}:{pc.port} exec -it {args.container} /bin/bash"
7676
for name, pc in robot.remote_pcs.items()
7777
}
7878
else:
@@ -84,7 +84,7 @@ def main():
8484
pc = robot.remote_pcs[remote_pc]
8585
if args.container:
8686
commands = {
87-
remote_pc: f"docker -H ssh://{pc.user}@{pc.hostname} exec -it {args.container} /bin/bash"
87+
remote_pc: f"docker -H ssh://{pc.user}@{pc.hostname}:{pc.port} exec -it {args.container} /bin/bash"
8888
}
8989
else:
9090
if not pc.has_command("ssh"):

0 commit comments

Comments
 (0)