File: test_common.sh

package info (click to toggle)
debvm 0.5.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 212 kB
  • sloc: sh: 2,336; exp: 14; makefile: 5
file content (7 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
#!/bin/sh

run_ssh() {
	test -n "${SSH_KEYPATH:-}" && set -- -i "$SSH_KEYPATH" "$@"
	test -n "${SSH_PORT:-}" && set -- -p "$SSH_PORT" "$@"
	ssh -o NoHostAuthenticationForLocalhost=yes -l root "$@"
}