KpyM Telnet/SSH Server - Forum
Authentication with public key - access denied
Andrii Kalytiuk Authentication with public key - access denied
 
When I attempt to authenticate with private/public key to SSH server installed on Windows - I get error message:

-------------------------------------------------------
Authenticating with public key "imported-openssh-key"
Access denied
-------------------------------------------------------

How I configured authentication with public key:

1) Generated private key file (.PEM) with OpenSSL - as described here
https://www.openssl.org/docs/HOWTO/keys.txt.
with command:

openssl genrsa -out sshPrivkey.pem 2048

2) Generated private key (.PPK) file and public key file with PuttyGen - as described here
http://stackoverflow.com/questions/3190667/convert-pem-to-ppk-file-format

3) Added public key with user name (local Administrator user), password and domain (tried both hostname and empty string) to publickey_login.ini file - as described here
http://www.kpym.com/phpbb/viewtopic.php?t=388&sid=81185b46de94c3c85594c489f49a07bb

4) Restarted Windows service of KTS server

5) Logged in with Putty specifying private key file (.PPK) under
Connection / SSH / Auth category

Thanks
Regards
Andrii Kalytiuk


Andrii Kalytiiuk
 
Exact fulfillment of instructions from following page resolved the problem:
http://www.kpym.com/phpbb/viewtopic.php?t=388&sid=81185b46de94c3c85594c489f49a07bb.

Log of KTS server helped a lot.

Reason was - wrong public key referenced in publickey_login.ini file.


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group