mirror of
https://github.com/rancher/os.git
synced 2025-06-02 03:46:06 +00:00
17 lines
421 B
Bash
Executable File
17 lines
421 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
chmod 0600 ./assets/rancher.key
|
|
|
|
UNAME=$(uname)
|
|
|
|
if [ "$UNAME" == "Darwin" ]; then
|
|
HOST=192.168.64.2 # consult `/var/db/dhcpd_leases` or delete it
|
|
exec ssh -F ./assets/scripts_ssh_config -i ./assets/rancher.key rancher@${HOST} "$@"
|
|
elif [ "$UNAME" == "Linux" ]; then
|
|
exec ssh -p 2222 -F ./assets/scripts_ssh_config -i ./assets/rancher.key rancher@localhost "$@"
|
|
fi
|
|
|