User Tools

Site Tools


systems:secure_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
systems:secure_server [2021/07/24 12:51] – [Test logging into the Server] petersystems:secure_server [2021/07/24 12:57] (current) – [Stop Pings] peter
Line 165: Line 165:
  
 sudo vi /etc/ssh/sshd_config sudo vi /etc/ssh/sshd_config
- 
-Port - change from 22 to 717 
-AddressFamily inet - change to only allow ipv4. 
-PermitRootLogin - change to no 
-PasswordAuthentication yes - change to no 
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:** Make the following changes:
 +
 +  * Port:  Change from 22 to 717
 +  * AddressFamily inet:  Only allow ipv4.
 +  * PermitRootLogin:  Change to **no**.
 +  * PasswordAuthentication yes:  Change to **no**.
 +
 +</WRAP>
 +
  
 ---- ----
Line 198: Line 204:
 <code bash> <code bash>
 ssh peter@192.168.1.x -p 717 ssh peter@192.168.1.x -p 717
-<code bash>+</code>
  
 <WRAP info> <WRAP info>
Line 242: Line 248:
  
 <WRAP info> <WRAP info>
-**NOTE: Press **y**.+**NOTE:** Press **y**.
 </WRAP> </WRAP>
  
Line 283: Line 289:
 </code> </code>
  
-Add a new line above this: +  * Add a new line above this: <file bash /etc/ufw/before.rules>
- +
-<file bash /etc/ufw/before.rules>+
 ->ok icmp codes for input ->ok icmp codes for input
 </file> </file>
Line 292: Line 296:
 ufw-before-input -p icmp --icmp-type echo-request -j DROP ufw-before-input -p icmp --icmp-type echo-request -j DROP
 </code> </code>
 +
 +----
 +
 +==== Reload UFW ====
  
 <code bash> <code bash>
systems/secure_server.1627131093.txt.gz · Last modified: 2021/07/24 12:51 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki