mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
Update login.yml
This commit is contained in:
2
.github/workflows/login.yml
vendored
2
.github/workflows/login.yml
vendored
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user