8 Commits

Author SHA1 Message Date
Clemens Schwaighofer
068131e32d Add message if key was alrady added or removed 2024-08-30 11:43:41 +09:00
Clemens Schwaighofer
2a34399e61 Add user public keys to admin user on the server
This only adds the admin user authorized_keys file, not the master one
2024-08-30 10:42:33 +09:00
Clemens Schwaighofer
3ab2e9c609 Ignore shellcheck errors in admin ssh keys, fix test ssh connection
ssh without -n or </dev/null will eat all input from the while read loop
This stopped the tests in the test ssh connection to be run

see man ssh for the -n option
2024-08-30 10:41:58 +09:00
Clemens Schwaighofer
07108e5764 Clean up admin ssh rotate scripts 2024-08-30 09:46:59 +09:00
Clemens Schwaighofer
043a16f397 Add settings block to ssh public key in auth file, ReadMe file update 2024-05-20 10:03:57 +09:00
Clemens Schwaighofer
65a235b152 Add -g (go) option, add force new key creation, test script add
Remove and Rotate script have -g (go) flag for actual run.
Remove has text updates for removed key info
Rotate force only forces rotation, but will not create new key unless -c (force create) is set
Test script added for testing connections
2024-05-16 13:55:18 +09:00
Clemens Schwaighofer
950dc33cb9 First stage for ssh key rotate and remove scripts 2024-05-15 18:41:43 +09:00
Clemens Schwaighofer
cba0f964e7 Basic script to rotate ssh keys on remote server 2024-05-14 11:34:16 +09:00