I am trying to run a UNIX command on remote host from my C# application.
I have seen various post over internet including SO for doing this using various libraries like SmartSsh any many others. And some others using command line commands.
I do not want to use any third party library.
Hence I tried using TcpClient class with example shown here on MSDN. I am passing hostname as : user@servername and port 22. When I run this code it trows an exception
SocketException (0x80004005): No such host is known
at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
Is it because my server/host expect a password for user, if yes then how do I provide that?