mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhuyulei (A)" <zhuyulei....@huawei.com>
Subject mina sshd questions
Date Fri, 05 Dec 2014 08:17:08 GMT
Hi,
I am using mina sshd 0.12.0, but there is little documentation...I have some questions about
how to use mina sshd...

I can set up ssh server and use ssh client connecting the ssh server, but now I want to do
not only this...

I want to know if mina sshd can do ssh reverse, just like this:
Now I have 2 Linux machines: controller-10-68-168-154 and controller-10-68-168-156
On controller-10-68-168-154:
controller-10-68-168-154:~ # ssh -NfR 9090:localhost:22 controller-10-68-168-156
Password:
controller-10-68-168-154:~ #

On controller-10-68-168-156, I can get 127.0.0.1:9090 listenning:
controller-10-68-168-156:~ # netstat -tnl | grep 127.0.0.1
tcp        0      0 127.0.0.1:9090          0.0.0.0:*               LISTEN
controller-10-68-168-156:~ #
then I can do this to connect controller-10-68-168-154:
controller-10-68-168-156:~ # ssh -p 9090 localhost
Password:
Last login: Fri Dec  5 14:42:05 2014 from 10.135.87.127
controller-10-68-168-154:~ #

Is Mina SSHD sshServer able to do this? How can I implement this with Mina SSHD? Anyone can
show me an example? Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message