PowerShell 스크립트를 통해 Windows 10에서 키를로드하기 위해 Pageant 0.70을 사용하고 있습니다.
profile-file.ps1
$pageant-path = "c:\full-path-to-pageant.exe"
$keypath1 = c:\full-path-to-key1
$keypath2 = c:\full-path-to-key2
$keypath3 = c:\full-path-to-key3
init.ps1
# sourcing from profile
. profile-file.ps1
# load keys - doing this because keys are in different locations and paths are too long to have in one spot
& $pageantpath -a "$keypath1"
& $pageantpath -a "$keypath2"
& $pageantpath -a "$keypath3"
Pageant 명령이 init.ps1
실행되면 각 명령에 대해 오류 팝업이 나타납니다.
이 키를 열 수 없습니다 (파일을 열 수 없음 ").
그러나 팝업을 지운 후 Pageant를 확인하면 키가 모두 Pageant에 성공적으로로드되어 사용할 수 있습니다.
난 노력 했어
-c
Pageant 의 플래그를 사용하여 명령 실행-a
Pageant 명령 줄 스위치 사용 / 사용 안 함지금까지 모두 동일한 결과를 얻었습니다. 오류 팝업이 표시되지만 키가로드됩니다. 이러한 오류 팝업을 방지하기 위해 사용할 수있는 다른 방법이 있습니까?
c:\full-path-to-pageant.exe -a c:\full-path-to-key1
Pageant에는 -a
스위치 가 없습니다 . 을 -a
파일 이름으로 사용하고로드를 시도하지만 실패합니다. 따라서 오류 메시지입니다. 그런 다음 다음 인수를 받아 해당 키를 성공적으로로드합니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다