First, double-check that /root/.ssh/authorized_keys does have your public key in it ( /users/xxx/id_rsa.pub
)
Then, if it fails, try if possible on the server to stop the SSH daemon , and restart it in debug mode: /usr/sbin/sshd -d -D
: a manuel one-time session, which will print whatever query it receives.
That way, you will know why the destination refuses your SSH query.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.