8 lines
259 B
Bash
8 lines
259 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Open an interactive SSH session to the VPS using credentials from .env.
|
||
|
|
# Usage:
|
||
|
|
# ./ssh.sh # interactive shell
|
||
|
|
# ./ssh.sh "docker ps" # one-shot remote command
|
||
|
|
source "$(dirname "$0")/_lib.sh"
|
||
|
|
vps_ssh "${1:-}"
|