How to solve the problem of UNPROTECTED PRIVATE KEY FILE?
1 | F:\> ssh -i "id_rsa" -p 2251 ??@??.com |
So I went home and tested it with my old computer:
An error message appeared:
ssh: The term 'ssh' is not recognized as the name of a cmdlet, function, script file, or operable program
Checked whether OpenSSH was installed through
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
, and found that Windows7 system does not natively support OpenSSHTried to solve it by installing
Git Bash
, butUnable to locate the program input point GetSystemTimePreciseAsFileTime on the dynamic link library KERNEL32.dll
Tried
Release
on theOpenSSH
official website, and found that it could not be compiled because theapi-ms-win-core-file-l1-1-0.dll
file was missing in the computerCygwin
official website found that it supportsunsupported Windows version
, https://cygwin.com/install.htmlWin+R
->cmd
->setup-x86_64.exe --allow-unsupported-windows --site http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/64bit/2024/01/30/231215 --no-verify
Successfully run Cygwin, set up the Tsinghua University mirror source, https://mirrors.tuna.tsinghua.edu.cn/cygwin/, select
openssh
, and install various C++ packagesIt still failed, and then I found that the key file can be used after it is removed from the USB drive. . .