at the place where I work, we use Tera Term (macros) to automate tasks. I'm learning C++ and I was wondering if I could use C++ to automate boring task the same way we do with Tera Term so I can have fun learning c++ solving real problems. For this, I would need to be able to create a program on visual studio that can ssh to a server send a command and wait for an output from the computer.
cout << please enter an ip address for the server you would like to connect
cin >> ssh firstname.lastname@example.org
// I don't know how to ssh from windows while writing code in visual studio.
//in Linux we would do "ssh email@example.com:"
once login I would like to send commands to the computer like a person would be typing it and wait for an output and validate that output.