.
This commit is contained in:
19
fix_sshkeys.bat
Normal file
19
fix_sshkeys.bat
Normal 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%
|
||||
Reference in New Issue
Block a user