[Samba] Trouble in ssh into Windows machines in the Windows/Samba Domain
Nicola Mingotti
nmingotti at gmail.com
Sun Apr 11 15:23:34 UTC 2021
Let's follow your way and use Windows 10 package for OpenSSH.
I deleted all what I have done before:
rm C:\ProgramData\ssh
rm C:\Program Files\OpenSSH
rm C:\Users\nicola\.ssh
rm C:\Users\adam1\.ssh
. I rebooted and start all clean. Install OpenSSH Client and Server from
windows GUI.
. Start-service sshd
. p at deb4> sshd adam1 at domus => does not work
. Stop-service sshd
. Edit C:\ProgramData\ssh\sshd_config and comment these 2 lines:
# Match Group administrators
# AuthorizedKeysFile
__PROGRAMDATA__/ssh/administrators_authorized_keys
. Start-service sshd
. p at deb4> sshd at adam1@domus => IT WORKS
. Now I need to add my public key
. Windows Powershell does not find ssh-keygen
. LogOut + LogIn
. adam1 at doums> ssh-keyget -t rsa (RETURN serveral times, i don't put
secret password)
. p at deb4> scp id_rsa.pub-p at deb4 adam1 at domus:.ssh/
. adam1 at dmus> vim authorized_keys
=> here I add the file id_rsa.pus-p at deb4
. Stop-service sshd
. Start-service sshd
p at deb4> ssh adam1 at domus
=> FAILS, IT DOES NOT ASK PASSWORD, it DIES.
There might be an issue with permissions on the files .
But on this release there is no script to check them.
Nicola
More information about the samba
mailing list