updated reseter source script
This commit is contained in:
parent
e29dd562da
commit
6d4fa3aca6
@ -74,8 +74,7 @@ ssh-keygen -q -N "$PASSWDNEW" -t ed25519 -f /home/free/.ssh/sovranpro_login
|
||||
if [[ $? -eq 1 ]]; then
|
||||
|
||||
exit 1
|
||||
|
||||
else
|
||||
if
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
|
||||
@ -89,8 +88,6 @@ if [[ $? -eq 1 ]]; then
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
|
||||
ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'sed -i -e "0,/ssh-ed25519.*/{ s::$(cat /home/free/.ssh/sovranpro_login.pub): }" /root/.ssh/authorized_keys'
|
||||
|
||||
|
Reference in New Issue
Block a user