a test that tries to log in to the user i made for it. But it seems to be positive all the time.. I'm probably missing something obvious 🤔
ssh -q ${backupuser}@{$sourcehost} exit
if [ $? -ne 0 ]
then
error logging here
fi
Oh god. Nevermind. How did I miss that lmao
Exit is the command you're testing against
Обсуждают сегодня