aktos-io / link-with-server

Reverse SSH Link Tool like autossh, written in Bash
13 stars 2 forks source link

Logs causes too much CPU usage #13

Closed ceremcem closed 7 months ago

ceremcem commented 7 months ago

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: sk-ssh-ed25519@openssh.com [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: sk-ecdsa-sha2-nistp256@openssh.com [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: sk-ssh-ed25519@openssh.com [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: sk-ecdsa-sha2-nistp256@openssh.com [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: sk-ssh-ed25519@openssh.com [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: sk-ecdsa-sha2-nistp256@openssh.com [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: sk-ssh-ed25519@openssh.com [preauth]
ceremcem commented 7 months ago

Above logs are generated by this line: https://github.com/aktos-io/link-with-server/blob/780f3d437ef19861bca1c2ded0b056536b2691f9/link-with-server.sh#L166

Currently this doesn't seem to be the root of high CPU usage. This is a wrong alarm.