User Tools

Site Tools


foss:wikishelf:ssh:ssh_server

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
foss:wikishelf:ssh:ssh_server [2014/03/13 12:21]
Jean-Christophe Berthon Add section on OpenSSH configuration
foss:wikishelf:ssh:ssh_server [2015/05/01 23:32] (current)
Line 28: Line 28:
  
 And I want to regenerate my own RSA key. And I want to regenerate my own RSA key.
-<​code>​ssh-keygen -t rsa -b 4096 -N ""​ -f /​etc/​ssh/​ssh_host_rsa_key</​code>​+<​code>​ssh-keygen -t rsa -b 4096 -N ""​ -f /​etc/​ssh/​ssh_host_rsa_key 
 +chmod 0640 /​etc/​ssh/​ssh_host_rsa_key 
 +chmod 0644 /​etc/​ssh/​ssh_host_rsa_key.pub</​code>​ 
 + 
 +On SELinux protected system, you will need to restore the access rights for those files (this is not necessary by design with AppArmor as the filename is not changed): 
 +<​code>​restorecon /​etc/​ssh/​ssh_host_rsa_key.pub</​code>​ 
  
 TO BE IMPROVED AND CONTINUED TO BE IMPROVED AND CONTINUED
foss/wikishelf/ssh/ssh_server.txt · Last modified: 2015/05/01 23:32 (external edit)