SshCfg->host = SerialInf->ssh_Host;
SshCfg->port = SerialInf->ssh_Port;
SshCfg->timeout = SerialInf->ssh_Timeout;
SshCfg->userName = SerialInf->ssh_Username;
SshCfg->password = SerialInf->ssh_Password;
qDebug()<<"host:"<<SshCfg->host;
qDebug()<<"port:"<<SshCfg->port;
qDebug()<<"timeout:"<<SshCfg->timeout;
qDebug()<<"userName:"<<SshCfg->userName;
qDebug()<<"password:"<<SshCfg->password;
SshLink = new QSsh::SshConnection(*SshCfg);
connect(SshLink,SIGNAL(QSsh::SshConnection::connected),this,SLOT(sshcon));
connect(SshLink,&QSsh::SshConnection::dataAvailable,[this](const QString & mse){this->ui->textBrowser_Receive->append(mse);});
connect(SshLink,&QSsh::SshConnection::disconnected,[this](){this->ui->textBrowser_Receive->append("SSH disconnect");});
SshLink->connectToHost();
qDebug()<<"SshLink:"<<SshLink->state();
SshLink:打印结果一直是0,state返回值0表示未连接,但是用SecurityCRT软件选择ssh2连接方式可以连接装置,QSsh是否支持SSh2?