File: vm-ssh.sh

package info (click to toggle)
bleak 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,076 kB
  • sloc: python: 11,282; makefile: 165; java: 105
file content (12 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
# SSH wrapper for Alpine VM - executes commands in the VM

set -euo pipefail

# Execute command or open interactive shell
ssh -o StrictHostKeyChecking=no \
    -o UserKnownHostsFile=/dev/null \
    -o LogLevel=ERROR \
    -p 2222 \
    builder@localhost \
    "cd ~/repo && $*"