我需要一个只接受握手的脚本或命令来向known_hosts文件添加密钥。
我尝试过ssh -o StrictHostKeyChecking=accept-new user@ip,但我遇到了它要求输入密码的问题:
Warning: Permanently added '192.168.178.xx' (RSA) to the list of known hosts.
user@IP's password:
Run Code Online (Sandbox Code Playgroud)
我需要一些可以跳回控制台的东西。任何提示?