esni-shell-channel is a program dedicated to establish LAN-to-LAN ssh connection.
we can not establish ssh connection when two hosts in diffrent network(LAN).you can deploy esni-shell-channel on your server which has public IP address, and it's able to transmit your ssh connection on specific port. Then those hosts can establish ssh connection through the port.
Download mserver enable transmit service on your server which obsess public IP address
$ nohup ./mserver $local-address &
Download mclient enable listener on your internal host
$ ./mclient $ssh-user $remote-address
Enter your password after the listener is started
"You are able to connect controlled node via ssh(third-party ssh tool, like Xshell, supported as well) on public server's 9657 port then enter your username and password. Plus, sftp is also available. Make sure the listeners on public server and controlled node are enabled."
- Ensure that port 9656, 9657 and 9658 of the public server is allowed by the firewall.
- Ensure that port 9658 and 9656 of the controlled node is allowed by the firewall.