README.md aktualisiert
This commit is contained in:
		
							
								
								
									
										13
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								README.md
									
									
									
									
									
								
							@ -7,8 +7,8 @@ OnlyKey
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Die Schlüssel können mit ssh-keygen -K wieder hergestellt werden. Dabei entstehen der private und der öffentliche Schlüssel im aktuellen Verzeichnis neu.
 | 
					Die Schlüssel können mit ssh-keygen -K wieder hergestellt werden. Dabei entstehen der private und der öffentliche Schlüssel im aktuellen Verzeichnis neu.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Downloadlink  
 | 
					  
 | 
				
			||||||
 | 
					KeyAuthentication
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
cd
 | 
					cd
 | 
				
			||||||
mkdir -p ~/.ssh  
 | 
					mkdir -p ~/.ssh  
 | 
				
			||||||
@ -19,7 +19,16 @@ mv authorized_keys ~/.ssh
 | 
				
			|||||||
chmod 600 ~/.ssh/authorized_keys  
 | 
					chmod 600 ~/.ssh/authorized_keys  
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Disable Passwortauthentication
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
sed -ri "s/^#? *PasswordAuthentication *yes.*/PasswordAuthentication no/" /etc/ssh/sshd_config
 | 
					sed -ri "s/^#? *PasswordAuthentication *yes.*/PasswordAuthentication no/" /etc/ssh/sshd_config
 | 
				
			||||||
 | 
					sed -i 's|UsePAM yes|UsePAM no|g' /etc/ssh/sshd_config
 | 
				
			||||||
systemctl restart ssh
 | 
					systemctl restart ssh
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Enable Passwortauthentication
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					sed -i 's|[#]*PasswordAuthentication no|PasswordAuthentication yes|g' /etc/ssh/sshd_config
 | 
				
			||||||
 | 
					sed -i 's|UsePAM no|UsePAM yes|g' /etc/ssh/sshd_config
 | 
				
			||||||
 | 
					service ssh restart
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user