Update login.yml

This commit is contained in:
Igor
2023-08-01 14:12:09 +02:00
committed by GitHub
parent a81d2c85ce
commit b5890423c2

View File

@@ -24,7 +24,7 @@ jobs:
ssh-keygen -qf "$HOME/.ssh/known_hosts" -R "${USER_HOST}" > /dev/null 2>&1
if [[ "$(sshpass -p 1234 ssh -o "StrictHostKeyChecking=accept-new" ${USER_ROOT}@${USER_HOST} "w " 2>&1 | grep "Permission denied")" == "Permission denied"* ]]; then
echo "Already done"
echo "Already done or 3rd party"
else
expect -c "
spawn sshpass -p 1234 ssh -o "StrictHostKeyChecking=accept-new" ${USER_ROOT}@${USER_HOST}