错误:
[2019-04-11 10:08:44,005] {{ssh_operator.py:80}} INFO - ssh_hook is not provided or invalid. Trying ssh_conn_id to create SSHHook.
[2019-04-11 10:08:44,015] {{logging_mixin.py:95}} INFO - [2019-04-11 10:08:44,014] {{base_hook.py:83}} INFO - Using connection to: id: conn_box2. Host: aws13shi02.logitech.com, Port: 22, Schema: None, Login: phonrao, Password: XXXXXXXX, extra: {'timeout': '10', 'compress': 'false', 'no_host_key_check': 'false', 'allow_host_key_change': 'false'}
[2019-04-11 10:08:44,016] {{logging_mixin.py:95}} INFO - [2019-04-11 10:08:44,016] {{ssh_hook.py:155}} WARNING - Remote Identification Change is not verified. This wont protect against Man-In-The-Middle attacks
[2019-04-11 10:08:44,022] {{logging_mixin.py:95}} INFO - [2019-04-11 10:08:44,022] {{transport.py:1746}} INFO - Connected (version 2.0, client OpenSSH_7.2p2)
如何删除/禁止显示此警告-
WARNING - Remote Identification Change is not verified. This wont protect against Man-In-The-Middle attacks
答案 0 :(得分:-1)
如果您确实要执行此操作,则必须修改.ssh / known_host以删除主机的标识。 您可以删除文件(不推荐使用),或使用ssh-keygen命令(ssh-keygen -R主机名)
但是在执行此操作之前,请先问自己您的身份发生了什么变化。这意味着您尝试访问的IP与以前未链接到同一服务器。这可能是完全正常的(如果您在云上使用静态IP,并链接到新服务器),或者可能是中间人攻击的迹象。