AppSync:無法將 AIX 主機新增至 AppSync,並顯示錯誤「主機認證失敗」。
Summary: 必須在 sshd-config 檔案中正確設定「PermitRootLogin」參數,才能成功進行主機認證。
Symptoms
使用者無法將 AIX 7.1 主機新增至 AppSync。此作業失敗,並會在伺服器記錄中看到下列錯誤:
08-21-2019 12:45:30.690 錯誤 [Thread-105 (HornetQ-client-global-threads-954151023)] [com.emc.archway.service.sshservice.SecureShellSession] [作為伺服器名稱] [<] da83e2f5-6fa7-4679-a010-563eb53f88c8->>> 連線至主機時發生錯誤:><IP 位址>:驗證失敗
08-21-2019 12:45:30.737 錯誤 [Thread-105 (HornetQ-client-global-threads-954151023)] [com.emc.archway.commands.host.DeployHostCommandBean] [<作為伺服器名稱>] [] da83e2f5-6fa7-4679-a010-563eb53f88c8->>> 發生例外:HostAuthenticationFailedException, 訊息:主機驗證失敗。
08-21-2019 12:45:30.846 DEBUG [Thread-105 (HornetQ-client-global-threads-954151023)] [com.emc.archway.commands.host.DeployHostCommandBean] [<作為伺服器名稱>] [] da83e2f5-6fa7-4679-a010-563eb53f88c8->>> 已成功推送代理程式檔案, 驗證主機部署:<IP 位址>
08-21-2019 12:45:30.846 INFO [Thread-105 (HornetQ-client-global-threads-954151023)] [com.emc.archway.service.eventservice.EventServiceBean] [<作為伺服器名稱>] [] da83e2f5-6fa7-4679-a010-563eb53f88c8->>> 事件 [MILE_000010]:在以下 <位置部署主機期間發生錯誤:IP 位址> (中繼資料:TYPE-ERROR, TIME-2019-08-21 12:45:30.846-0400NATIVETIME-2019-08-21 12:45:30.846-0400, HOST-AS< SERVER NAME>, PHASE-, THREAD=Thread-105 (HornetQ-client-global-threads-954151023), USER-admin, CATEGORY-MILESTONE, SESSIONID-GFkTWyFaoknMLTB6FvJPzktcJbOoWA8wduLj8OOj)
Cause
Resolution
sshd_config 檔案位於 /etc/ssh/sshd_config 下。
一般來說,PermitRootLogin 應設定如下:
debug3:/etc/ssh/sshd_config:41 設定 PermitRootLogin 無密碼