4 ms·
They're nervous about this part: # Restart sshd in the new root. cp /mnt/etc/ssh/* /etc/ssh killall -HUP sshd # You'll have to reconnect at this point.
by nailer 11y ago
They're nervous about this part:
# Restart sshd in the new root.
cp /mnt/etc/ssh/* /etc/ssh
killall -HUP sshd
# You'll have to reconnect at this point. Let's hope it works.
Use a dead man's switch: set an 'at' job to undo everything in 10 minutes. If you screw up and get disconnected, the at job runs.