diff --git a/fix_sshkeys.bat b/fix_sshkeys.bat new file mode 100644 index 0000000..c75832f --- /dev/null +++ b/fix_sshkeys.bat @@ -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% \ No newline at end of file diff --git a/fix_syncthing.bat b/fix_syncthing.bat index 112d0b2..7b3f9ab 100644 --- a/fix_syncthing.bat +++ b/fix_syncthing.bat @@ -16,7 +16,7 @@ set /p MYID= < %TEMP_LIST% echo "myID is %MYID%" -%BINARY% cli config devices %MYID% name set %MYHOST%.%LOGNAME% +%BINARY% cli config devices %MYID% name set p%MYHOST%.%LOGNAME% %BINARY% cli config defaults folder fswatcher-enabled set true %BINARY% cli config defaults folder rescan-intervals set 19997