mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-04 18:19:37 +00:00
Only with networking in bridge (or probably tap) modes, not user mode. Signed-off-by: Ian Campbell <ijc@docker.com>
19 lines
353 B
Bash
Executable File
19 lines
353 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
sshopts="-o LogLevel=FATAL \
|
|
-o StrictHostKeyChecking=no \
|
|
-o UserKnownHostsFile=/dev/null \
|
|
-o IdentitiesOnly=yes"
|
|
|
|
case $(uname -s) in
|
|
Linux)
|
|
ssh=ssh
|
|
;;
|
|
*)
|
|
ssh="docker run --rm -ti \
|
|
-v $HOME/.ssh/:/root/.ssh \
|
|
ijc25/alpine-ssh"
|
|
;;
|
|
esac
|
|
$ssh $sshopts -t root@"$1" ctr exec --tty --exec-id ssh kubelet ash -l
|