Shell Script
Shell Script
- set -e will cause the script to exit on any error/non-zero return value.
- set +e (the default) errors will occur, but the script will continue to run.
import .env
.
. .env
ssh login with private key
ssh -i ./path/key root@localhost
ssh -i ./private.key root@localhosts
-
if unprotectd privatekey
chmod 400 key.pem