#!/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