Java分析添加目标环境失败。
若是系统时间导致,请确认系统时间的准确性,系统时间准确后可部署成功。
若是SSH的安全配置问题,请根据以下步骤排查和配置。
查看/etc/ssh目录下sshd_config配置文件。
可通过ssh -Q mac查看是否支持hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160。
若上述加密算法支持但未配置,需在/etc/ssh目录下sshd_config配置文件中修改增加(注意仅添加支持的算法):
1
|
MACs hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-md5,uhmac-sha1,umac-64@openssh.com,hmac-ripemd160 |
查看/etc/ssh目录下是否含有:ssh_host_ecdsa_key、ssh_host_ed25519_key。
若没有则生成对应hostKey:
1 2 |
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key |
在配置文件/etc/ssh目录下sshd_config取消注释或新增:
1 2 |
HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key |
1
|
HostKeyAlgorithms ssh-ed25519,ssh-ed2551-=cert-v01@openssh.com |
使用ssh -Q cipher命令检查支持的ssh对称密钥。
若上述加密算法支持但未配置,需在/etc/ssh目录下sshd_config配置文件中修改增加(注意仅添加支持的算法):
1
|
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc |
1
|
GSSAPIAuthentication yes |
1
|
systemctl restart sshd.service |