plink 명령의 대화형 프롬프트에 'y'를 전달합니다.

plink 명령의 대화형 프롬프트에 'y'를 전달합니다.

plink원격 서버에 대한 연결을 설정하고 다음 명령을 사용하여 SIP 사용자 디렉터리 목록에서 항목을 삭제하려고 합니다 .

plink root@<server-ip> -pw pwd serctl ul rm bob

그런 다음 다음 질문을 해보세요.

The server's host key is not cached. You have no guarantee
that the server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 1024 5d:ae:ae:ad:46:71:30:6d:0c:0e:30:e1:cd:f7:6b:90
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n)

이는 명령이 처음 실행되는 경우에 발생합니다. 스크립트에서 이 명령을 실행하면 대화형 프롬프트에서는 항상 같은 것을 묻지만 응답이 없으므로 같은 것을 여러 번 묻고 인쇄합니다.

Store key in cache? (y/n) Connection abandoned.

매뉴얼 페이지에서플링크, options 를 사용하여 대화형 프롬프트를 무시하는 방법을 이해했지만 -batch응답이 긍정적인지 확인하고 싶습니다 y. 즉, 응답이 명시적인지 어떻게 확인합니까 y? 이것을 명령에 추가하는 방법이 있습니까?

답변1

yes배포판에서 사용 가능한 경우 명령을 시도해 볼 수 있습니다. 예를 들어 다음을 참조하세요.

예를 들어(예, 제목이 거의 동일함에도 불구하고 두 가지 다른 질문입니다).

관련 정보