Re: .NET Server sent command exit status 0
Finaly I found solution :)
This post was really useful and led me to achieve my goal : https://winscp.net/forum/viewtopic.php?t=11807
So I used Pageant https://winscp.net/eng/docs/ui_pageant and since then the app worked fine. The problem was that after closing the Pageant all added keys were deleted from the list. You can run Pageant using command line and use parameter to define the location of your keys https://blog.shvetsov.com/2010/03/making-pageant-automatically-load-keys.html
After this another problem may occur and if the keys are stored encrypted, Pageant will request the passphrases on startup, otherwise they'll be loaded without any prompts. Unfortunately may key was encrypted and you can't just pass passphrase to the command line. Another post was helpful with this issue https://superuser.com/questions/367531/getting-pageant-to-save-keys-files. You just have to open your key in PuTTYgen and save it again without password. Then everything works like a charm ;)[/url]
This post was really useful and led me to achieve my goal : https://winscp.net/forum/viewtopic.php?t=11807
So I used Pageant https://winscp.net/eng/docs/ui_pageant and since then the app worked fine. The problem was that after closing the Pageant all added keys were deleted from the list. You can run Pageant using command line and use parameter to define the location of your keys https://blog.shvetsov.com/2010/03/making-pageant-automatically-load-keys.html
After this another problem may occur and if the keys are stored encrypted, Pageant will request the passphrases on startup, otherwise they'll be loaded without any prompts. Unfortunately may key was encrypted and you can't just pass passphrase to the command line. Another post was helpful with this issue https://superuser.com/questions/367531/getting-pageant-to-save-keys-files. You just have to open your key in PuTTYgen and save it again without password. Then everything works like a charm ;)[/url]