This project is read-only.

ForwardedPortLocal Work on Linux, but refused by server 10054 with AIX 6.1

Aug 13, 2013 at 4:40 PM
I tested forwardedPortLocal function very successfully with My CentOS and fedora without any errors. But When I try it with AIX 6.1 , seems SSH connected well and forwardedport.Start() with no error, and then following actual service request to bound ip and port, get "refused by server socket error 10054". Both SSHD Linux and AIX used with default sshd_config.

Do I need to do more on AIX? Is there anything to do work with AIX SSH?
Is it related "Keep Alive" something?
       var  port1 = new ForwardedPortLocal( myPC, 7776, sshHost, 7776);
       port1.RequestReceived += forwarding_RequestReceived;
       port1.Exception += forwarding_Exception;
       My_function_call (  myPC, 7776 );
I hope to get any clue on this
Aug 13, 2013 at 6:49 PM
The SSH-Daemon on your target machine must allow PortForwarding.
What does "default sshd_config" mean?
Some distributers think they have to "improve" default configs :(

check out:

Especially the value of AllowTcpForwarding
Aug 13, 2013 at 11:52 PM
thanks for your comment. But when I try this with ssh command "ssh -N -f -L abc:123:def:456 ".. then execute my_call then it works.
I hope to know how to get same result as I use command ssh with SSH.Library
Aug 14, 2013 at 6:03 AM
Take a look at the tests:

Since you don't show all your code, I also just can guess and I won't do that ;)
Aug 15, 2013 at 6:17 AM
da_rinkes, thanks your sincere reply.
Because My code was almost same as the test program, I did not show ;-)

But I got some solution on this matter,

With the userID that once I log in int the AIX server with putty or terminal program,works fine.

But newly created UserID on same AIX server that never loged-in by hand,
Connection and ForwardedPort seems go well, and just after request socket call to bound-port, then it goes to fails.

Remain My question are
  • Is it same thing with - StrictHostKeyChecking option on "ssh" client?
  • the SSH.NET can set this always "Yes" with "HostKeyRecieved" event?
  • then Is This event occurred for newly connected "Host" Server or Newly connected "userID" even same Host.
I am vey new to SSH, so it is very hard to handle exception case. so far your comment very useful to me. t
Aug 15, 2013 at 7:52 AM

I found the reason why I met failed to request through forwarded port.
AIX, ask the change password at the login just after change or create user/password by default.
So, I changed the given password by admin/root, the it works.

Then, Is there any way avoid this matter without server side change?

Thanks in advance.