Hi,
I'm trying to create a c program that when run opens a ssh tunnel to a computer, executes a few commands on that computer and closes the tunnel again.
But I have no idea how to do this. I have tried to use "system()" to run linux commands but it stuffs up as I need to type in a password for my user.
Is there some good and reasonably easy way to do this?
Regards
Mattias