Skip to main content

Sữa lỗi SSH onnection closed by authenticating user root 192.168.1.xxx port 55080 [preauth]

Lỗi: Jun 01 00:44:48 rack2 sshd[37416]: Connection closed by authenticating user root 192.168.1.12 port 55080 [preauth]

Khi: Bạn xài upsnap và bạn muốn shutdown vm thông qua linux ssh command:

sshpass -p password ssh -o "StrictHostKeyChecking=no" user@192.168.1.13 "sudo poweroff"

Thêm vào 2 dòng sau vào file ssh_config ở path:

nano /etc/ssh/ssh_config
UserKnownHostsFile=/dev/null
StrictHostKeyChecking=no