同樣兩台交換機同型號同版本,其中一台腳本配置完SSH後正常登錄,另外一台無法登錄,debug信息如下:
麻煩大佬幫忙分析下什麼原因造成
(0)
最佳答案
按照這個方法刪除下秘鑰對,在試試
當設備作為SSH Client,在登陸SSH Server後,會在本地配置中保存遠端主機公鑰。如果直接通過undo public-key peer keyname命令刪除,則會提示該公鑰正在被使用,無法刪除:
[S58IRF]undo public-key peer 12.1.1.1
Warning: Do you really want to remove the public key named 12.1.1.1? [Y/N]:y
The peer public key "12.1.1.1" is being used, can't delete it.
如果要刪除這個公鑰配置,需要先通過undo ssh client authentication server命令用來取消在客戶端上指定要連接的服務器端的主機公鑰。
[S58IRF]undo ssh client authentication server 12.1.1.1 assign publickey
這時可以正常刪除遠端主機公鑰:
[S58IRF]undo public-key peer 12.1.1.1
Warning: Do you really want to remove the public key named 12.1.1.1? [Y/N]:y
[S58IRF]
delete ssh client server-public-key 11.102.0.3
(0)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論