login about faq

CkSsh ssh; bool success = ssh.UnlockComponent("Anything for 30-day trial"); char hostname[100] = "173.208.107.42"; int port = 22; success = ssh.Connect(hostname,port); if (success != true) { strOut.append(ssh.lastErrorText()); AfxMessageBox(strOut.getString()); return; ``} ssh.put_IdleTimeoutMs(10000);

//  Authenticate using login/password:
success = ssh.AuthenticatePw("admin","admin");
if (success != true) {
    strOut.append(ssh.lastErrorText());
    AfxMessageBox(strOut.getString());
    return;
}
long channelNum;
channelNum = ssh.OpenDirectTcpIpChannel("www.chilkatsoft.com",80);

I got channelNum = -1 and reason code is 2 although ssh connect and authenticate success. I got reason code 2 but didn't know why it can't open an channel tcpip. I tried with another 10 sshhost name (all tested with bitwise is ok) but the same problem with above. Send email is the same problem when put sshhostname,sshuser,sshpass. I using bitwise tunnel to create sockks5 127.0.0.1 then attach to firefox it works. Anyone know Please let me know what is the problem ? Thank you

asked Jan 23 '14 at 19:11

htnet2005's gravatar image

htnet2005
1123

edited Jan 23 '14 at 20:09

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79
×3
×2

Asked: Jan 23 '14 at 19:11

Seen: 727 times

Last updated: Jan 23 '14 at 20:09

powered by OSQA