PsExec does not work with public key authentification

Marco Weinrich
Thu Oct 27 10:47:00 GMT 2016


i setup ssh and execute command with psexec on the remote server, which works as expected. Then i added my pub key to my ~/.ssh/authorized_keys to login without pw.
After that i cannot execute psexec commands, it says ”handle is invalid“.  Checked twice, remove my pub key from authorized_keys and it worked again.

Which parameter in sshd_conf is responsible for that? Could it by that i have to make a user config file with ”PermitLocalCommand yes“ ?

Any help would bei great! 

Thanks, Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3571 bytes
Desc: not available
URL: <>

More information about the Cygwin mailing list