I have windows remoting enabled on my dev machine, using FreeSSHd and PuTTY as a SFTP server and client. I am using public authentication only, having the private key loaded in PuTTY's Pageant.
I use Windows Powershell Remoting to perform a call to PuTTY's PSFTP command line tool (having the binary folder of PuTTY in the PATH environment system variable), using C# code (using the Powershell automation assembly & namespace).
If I open Windows Powershell and perform this call: invoke-command -computername 127.0.0.1 -filepath c:\temp\sftp\invoke.ps1
I get an error:
Fatal: Disconnected: No supported authentication methods available (server sent: publickey)
When checking FreeSSHd's log I see only this:
- 12-06-2011 14:12:04 IP 127.0.0.1 SSH connection attempt.
- 12-06-2011 14:12:04 IP 127.0.0.1 SSH disconnected.