Send ufw enable with SSH

0 votes
asked Jun 9, 2014 by r0otsharp (120 points)
edited Jun 9, 2014

hi

i want to deploy a manager with c# for openvpn. but for some command i need to answer to prompt. like ufw enable. when send command with RunCommand(), don't receive response.

please help me for solve this problem.

Best Regards Ehsan Farahani

1 Answer

0 votes
answered Jun 9, 2014 by Pavel Matyska (13,980 points)
edited Jun 9, 2014

Hi,

Please use StartCommand method instead. You can read more in our tutorial page: terminal emulation tutorials

There are code tutorials about RunCommand and StartCommand methods and basic use cases.

...