使用sharpssh自帶的demo可以正常連接到linux,但是輸入輸出都在console。我參考http://bbs.csdn.net/topics/340259587這邊但是創建連接直接拋例外 "由于目標計算機積極拒絕,無法連接"。代碼如下
try
{
SshStream sshStream = new SshStream(ip, username, password);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
sshStream 為null。

help me
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/145355.html
標籤:網絡通信
