快捷命令执行后显示Failed to connect to the host via ssh: ssh_dispatch_run_fatal: Connection to ip port 22: Invalid key length

OpenSSH版本升级到了7.6之后,小于1024bits的RSA keys已经不被支持了。

做秘钥验证的时候,AuthorizedKeysFile 和AuthorizedKeysCommand,这2个对应的路径以及文件名必须写对才可以