mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-26 15:23:45 +01:00 
			
		
		
		
	As per #200
							
								
								
									
										3
									
								
								macOS.md
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
										
											
											
										
										
									
								
							
						
						
									
										3
									
								
								macOS.md
									
									
									
									
									
								
							| @@ -16,7 +16,8 @@ mv /etc/ssh/moduli.safe /etc/ssh/moduli | ||||
| 3. Enable the RSA and ED25519 keys | ||||
| Enable the RSA and ED25519 HostKey directives in the /etc/ssh/sshd_config file: | ||||
| ``` | ||||
| sed -i 's/^\#HostKey \/etc\/ssh\/ssh_host_\(rsa\|ed25519\)_key$/HostKey \/etc\/ssh\/ssh_host_\1_key/g' /etc/ssh/sshd_config | ||||
| sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_rsa_key/HostKey \/etc\/ssh\/ssh_host_rsa_key/' /etc/ssh/sshd_config | ||||
| sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_ed25519_key/HostKey \/etc\/ssh\/ssh_host_ed25519_key/' /etc/ssh/sshd_config | ||||
| ``` | ||||
| 4. Restrict supported key exchange, cipher, and MAC algorithms | ||||
| ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Bas
					Bas