aktos-io / link-with-server Goto Github PK
View Code? Open in Web Editor NEWReverse SSH Link Tool like autossh, written in Bash
Reverse SSH Link Tool like autossh, written in Bash
Log if default port is used more than once within the runtime of link-with-server. Related to #11
Logs causes too much CPU usage. Those messages appear continuously (where 192.168.43.141
is local ip):
Feb 18 06:00:44 erik3 sshd[3449173]: Unable to negotiate with 192.168.43.141 port 60586: no matching host key type found. Their offer: [email protected] [preauth]
Feb 18 06:00:44 erik3 sshd[3449208]: Connection closed by 192.168.43.141 port 60600 [preauth]
Feb 18 06:00:44 erik3 sshd[3449209]: Connection closed by 192.168.43.141 port 60610 [preauth]
Feb 18 06:00:44 erik3 sshd[3449210]: Connection closed by 192.168.43.141 port 60624 [preauth]
Feb 18 06:00:44 erik3 sshd[3449211]: Unable to negotiate with 192.168.43.141 port 60626: no matching host key type found. Their offer: [email protected] [preauth]
Feb 18 06:00:44 erik3 sshd[3449212]: Unable to negotiate with 192.168.43.141 port 60642: no matching host key type found. Their offer: [email protected] [preauth]
Feb 18 06:00:50 erik3 sshd[3449310]: Connection closed by 192.168.43.141 port 50796 [preauth]
Feb 18 06:00:51 erik3 sshd[3449311]: Connection closed by 192.168.43.141 port 50812 [preauth]
Feb 18 06:00:51 erik3 sshd[3449312]: Connection closed by 192.168.43.141 port 50826 [preauth]
Feb 18 06:00:51 erik3 sshd[3449313]: Unable to negotiate with 192.168.43.141 port 50832: no matching host key type found. Their offer: [email protected] [preauth]
Feb 18 06:00:52 erik3 sshd[3449314]: Unable to negotiate with 192.168.43.141 port 50838: no matching host key type found. Their offer: [email protected] [preauth]
Feb 18 06:00:52 erik3 sshd[3449351]: Connection closed by 192.168.43.141 port 50870 [preauth]
Feb 18 06:00:52 erik3 sshd[3449349]: Connection closed by 192.168.43.141 port 50852 [preauth]
Feb 18 06:00:52 erik3 sshd[3449350]: Connection closed by 192.168.43.141 port 50858 [preauth]
Feb 18 06:00:52 erik3 sshd[3449352]: Unable to negotiate with 192.168.43.141 port 50880: no matching host key type found. Their offer: [email protected] [preauth]
Feb 18 06:00:52 erik3 sshd[3449353]: Unable to negotiate with 192.168.43.141 port 50882: no matching host key type found. Their offer: [email protected] [preauth]
In this function:
link-with-server/link-with-server.sh
Line 165 in f966b9b
nc
output can not be "fully" trusted because there may be an SSLH server listening that port while SSH server is down.
If client tries to connect a different host (accidentally, or somehow), SSH normally asks for host verification and client hangs at this point.
Client should simply fail to connect if host key is not known.
...re-established connections use the default port (7000) otherwise.
Sometime some changes must be done in every node in field (such as domain name change of aktos-elektronik.com to aktos.io).
Such work should be done by a connection script located in rendezvous server.
proposal:
create a process to watch if the mobmac_sshd_port is active or not. if not active, it should kill PID.
link-with-server
should not be shut down accidentally.
Create a trap that will display a prompt asking if user is sure to shutdown link-with-server
with a timeout.
This is happened after a server reboot:
creating tunnel on Sat Nov 28 10:30:29 UTC 2015
ssh: connect to host aktos-elektronik.com port 22: No route to host
2015-11-28 10:30:30 - Getting proxy settings
2015-11-28 10:30:30 - SSH ID Key exists, continue...
2015-11-28 10:30:30 - Checking server connectivity
2015-11-28 10:30:41 - Connection Checking Disabled!
2015-11-28 10:30:41 - Connectivity to the server is OK.
2015-11-28 10:30:46 - SSH key is already registered...
2015-11-28 10:30:46 - Creating ssh socket
2015-11-28 10:30:46 - Creating new SSH socket.
2015-11-28 10:30:50 - Getting MOBMAC settings
2015-11-28 10:30:51 - MOBMAC_ID: eb:e5:c0:c5:b2:99:02:a6:82:ea:c3:e1:7c:9c:a7:ff
2015-11-28 10:30:51 - Bind localhost:22 -> server:7028
2015-11-28 10:30:51 - Checking if link is working
2015-11-28 10:30:52 - Connection is broken, creating a new tunnel.
According to nethog
, link-with-server creates too much traffic while monitoring the tunnel operability state.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.