I am writing a program in C# on Ubuntu with Mono. This program takes files and PGP encrypts them, then SSH them to clients. I got the PGP to work by using Process.Start(gpg, arguments). My question is can I do the same with SSH, I have yet to find the SSH executable on Ubuntu to run. I want to do this to exclude using an API, like SharpSSH.
Share
You might want to setup SSH keys and run the application from within an
ssh-agentsession, else you will be prompted for a password inside your application which might be harder to handle.If you want to send files you also don’t want the
sshbinary; you most likely want to usescpfor filetransfers. You can find scp in/usr/bin/scpif the packageopenssh-clientis installed.