Files
clientlinux/scwipts/ssh.sh

5 lines
178 B
Bash

#!/bin/bash
if [[ "$(ps -x |grep saret@ssh |awk '{print $9}')" != *"libre-computer:22:localhost:22"* ]]; then
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
fi