LeassTaTT / zscreen

Automatically exported from code.google.com/p/zscreen
1 stars 2 forks source link

Invalid private key file (SSH/SFTP) #716

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a key using PuttyGen. Example: SSH-2 RSA 1024bit private key (no 
passphrase required). Public key and private key example attached.
2. Use it in zscreen by choosing SFTP as the protocol and link to the .ppk 
keyfile under Keypath
3. Click test connection or just upload something using zscreen.
4. "Invalid private key file."

What is the expected output? What do you see instead?
After all, Putty itself works as well as FileZilla SFTP.

What version of the product are you using? On what operating system?
ZScreen 4.8.1 Rev 2953 on Win7 64bit

Heres the error log from the test connection:
Invalid private key file.
Renci.SshNet.Common.SshException: Invalid private key file.
   at Renci.SshNet.PrivateKeyFile.Open(Stream privateKey, String passPhrase)
   at Renci.SshNet.PrivateKeyFile..ctor(String fileName)
   at UploadersLib.FileUploaders.SFTP..ctor(FTPAccount account) in D:\Users\Mike\Documents\Visual Studio 2010\Projects\ZApps\branches\4\ZSS.UploadersLib\FileUploaders\FTP\SFTP.cs:line 46
   at UploadersLib.UploadersConfigForm.TestFTPAccount(FTPAccount account, Boolean silent) in D:\Users\Mike\Documents\Visual Studio 2010\Projects\ZApps\branches\4\ZSS.UploadersLib\GUI\UploadersConfigFormHelper.cs:line 638
   at UploadersLib.UploadersConfigForm.FTPAccountTestButton_Click(Object sender, EventArgs e) in D:\Users\Mike\Documents\Visual Studio 2010\Projects\ZApps\branches\4\ZSS.UploadersLib\GUI\UploadersConfigFormGUI.cs:line 580
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Original issue reported on code.google.com by oehrg...@gmail.com on 1 Jan 2012 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
ZSS.UploadersLib\FileUploaders\FTP\SFTP.cs:line 46

Original comment by mcored on 1 Jan 2012 at 9:33

GoogleCodeExporter commented 9 years ago
When generating the key files you need to go to Conversions -> export OpenSSH 
key if i remember right

Original comment by TheDeat...@gmail.com on 3 Jan 2012 at 2:31