This commit is contained in:
USER
2024-09-02 20:37:10 +01:00
parent 1933d7418d
commit 9942d28938
2 changed files with 20 additions and 1 deletions

19
fix_sshkeys.bat Normal file
View File

@ -0,0 +1,19 @@
@REM @echo off
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
set BINARY=%homedrive%%homepath%\syncthing\syncthing
set MASTER_LIST=C:\Scripts\Secrets\master.list
set SHARE_LIST=C:\Scripts\Secrets\share.list
set TEMP_LIST=%homedrive%%homepath%\temp.list
set LOGNAME=%USERNAME%
set MYHOST=%COMPUTERNAME%
%BINARY% --device-id > %TEMP_LIST%
set /p MYID= < %TEMP_LIST%
echo "myID is %MYID%"
ssh-keygen -o -a 100 -t ed25519 -f C:\Users\%USERNAME%\.ssh\giteadeploy -N "" -C giteadeploy@%MYHOST%