mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-04-26 14:24:51 +02:00
17 lines
392 B
Bash
17 lines
392 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Log in to webapp server via SSH
|
||
|
|
||
|
API_TOKEN_SECRET="secrets/hetzner-api-token.sh"
|
||
|
test -f $API_TOKEN_SECRET || { echo >&2 "File $API_TOKEN_SECRET does not exist."; exit 1; }
|
||
|
source $API_TOKEN_SECRET
|
||
|
|
||
|
source devops/functions.bash
|
||
|
|
||
|
get_ip
|
||
|
|
||
|
echo "Use this command for SSH access:"
|
||
|
echo "ssh -o StrictHostKeyChecking=no root@${IP_IP}"
|
||
|
|
||
|
ssh -o StrictHostKeyChecking=no root@${IP_IP}
|