Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh connection - i want block all
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Fri Jun 23, 2017 6:03 am    Post subject: ssh connection - i want block all Reply with quote

Hello,

i want block every connections with ssh. Manuelly i can do this with #/etc/init.d/sshd stop. But what can i do to block everytime the ssh connections?
_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5641

PostPosted: Fri Jun 23, 2017 6:10 am    Post subject: Reply with quote

Code:
rc-update delete sshd
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1694

PostPosted: Fri Jun 23, 2017 6:10 am    Post subject: Reply with quote

Well, the easiest way like you said is stop sshd from starting (removing it from your run level so it is not started)... This does not stop you from ssh to another computer, as that the service is on their side...
The alternative, is in your firewall is to block ssh port, port 22 by default (you may want to double check the configs in case you changed this).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum