bin/zellijssh

8 lines
105 B
Plaintext
Raw Normal View History

2023-10-04 12:40:21 +02:00
#!/usr/bin/env bash
if ping -c 1 "$1"; then
autossh -M 0 "$1"
else
echo "Host not reachable"
fi