Last active
April 13, 2025 09:34
-
-
Save b23prodtm/b08f58c5d0474902fd3e4bbbaf95aa2e to your computer and use it in GitHub Desktop.
Balena Engine connect to your favorite container terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
[ $# -lt 3 ] && echo "Usage: $0 <port> <user@host> <container-name>" && exit 0 | |
ssh -vttp "$1" "$2" "balena exec -it \$(balena-engine ps | grep \"${3}\" | awk '{print \$1}') /bin/sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ssh -ttp
if you want to disable verbosity from SSH