简体   繁体   中英

SSH Host Based Authentication Windows

I am trying to configure Host Based Authentication for SSH from Windows to Windows using OpenSSH. I have found the following articles but they are Linux based.

https://www.golinuxcloud.com/configure-ssh-host-based-authentication-linux/
https://www.lehigh.edu/~insna/OpenSSH-HOWTO-hostbased-auth.htm
https://docs.oracle.com/cd/E36784_01/html/E37125/sshuser-12.html

I have followed the same steps as mentioned in these articles. Although I know that the configurations should be same, but somehow I am not able to connect to remote machine. Here is the error I am getting

Permission denied (publickey,keyboard-interactive,hostbased)

I am not able to understand what I am missing. I was looking for articles which describe the steps for Windows, as it will be easy for me to understand if I am missing something.

Got the solution. The following configuration must be set.

StrictModes no

It is by default set to yes, and is commented out in the sshd_config file. StrictModes is set to no for Public Key Authentication and Host Based Authentication.

None of the above articles (plus others too) have mentioned it, unfortunately.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM