compare the difference between executing commands directly in CMD and running them through C#
I am currently developing a remote program using SSH. While it connects well when accessing a Windows 10 system, it fails to connect when accessing a Windows 11 system. I would like to ask how to resolve this issue. and Connecting to SSH works well when I execute the command directly in CMD, but it fails when I execute CMD through C#. On Windows 10, both methods work fine, but on Windows 11, the connection fails.
SSH RunCommand and Execute command hangs on but the client connection with the help of putty works and executes command
I am trying to execute the ssh client command using SshNet package. Below codes hangs on RunCommand and Execute command and it won’t execute the command on target device.