bashscripts/remote_updater.sh

11 lines
185 B
Bash

#!/bin/bash
#verify run as root or sudo
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
cat .ssh/config | grep -E "^Host [^\*\*]" | sed "s/Host //"