Beware of Raspberry Pi SSH hijacks

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Beware of Raspberry Pi SSH hijacks

Post by ben53252642 »

Actually it is relevant to SSH Hijacks because many attacks are successful because of leveraged kernel or application vulnerabilities, now were even starting to see CPU vulnerabilities eg Spectre for which there are now kernel patches.

I combine it with "unattended upgrades" to cover the system packages.

https://help.ubuntu.com/lts/serverguide ... dates.html

Obviously put SSH on a non-default port with either certificate auth or a very long complex password.

If you want to go the extra mile use port knocking. 8-)
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Beware of Raspberry Pi SSH hijacks

Post by EddyG »

poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Beware of Raspberry Pi SSH hijacks

Post by poudenes »

I always change port to above 5000 and make use of SSH_KEY.
And change some settings in sshd_config to

Port I-DONT-TELL
PermitRootLogin no
PasswordAuthentication no
UsePAM no
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Thunderbolt
Posts: 7
Joined: Saturday 03 August 2013 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11665
Location: Germany
Contact:

Re: Beware of Raspberry Pi SSH hijacks

Post by Thunderbolt »

I'm a little confused, but did I got that right, that you left your ssh port of your pi accessible from the internet?
In my opinion, that port shouldn't be open at all. If I want to access the pi from outside, I would use a secured VPN connection.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest