ansible api 呼叫出現ssh互動式輸入

2022-07-04 20:48:08 字數 563 閱讀 9118

發現在刪掉 ~/.ssh/know_hosts 之後執行 ansible api 會出現以下提示

the authenticity of host '

10.1.*.* (10.1.*.*)

' can'

t be established.

rsa key fingerprint is 43:54:a5:c0:f8:4a:a2:d2:1a:ef:87:8f:90:f5:dd

:4a.

are you sure you want to continue connecting (yes/no)?

因為在指令碼裡面自動執行呼叫,無法使用 pexpect 模組,也無法捕捉到 這段提示的輸出,ansible 原始碼研究不夠透徹搞了半天也沒解決,最後只能從根本途徑上面解決問題,直接修改 ssh 配置,去掉該段提示。

vim /etc/ssh/ssh_config 

host *stricthostkeychecking no

重啟 sshd

service sshd restart

編譯A31S出現錯誤

編譯a31s 1.compile lichee directory enter the lichee directory cd lichee execute the compile command build.sh p sun6i fiber a31s 2.compile android direc...

呼叫directshow出現鏈結錯誤

錯誤提示為 player.obj error lnk2001 unresolved external symbol iid ivideowindow player.obj error lnk2001 unresolved external symbol iid imediacontrol 解決兩種辦...

python呼叫aws api操作s3

首先需要配置金鑰和密碼 建立配置資料夾 mkdir aws 建立配置檔案 vim aws config default output json 輸出格式 region ap northeast 2 預設區域建立金鑰檔案 vim aws credentials default aws access k...