User Tools

Site Tools


computing:ssh

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
computing:ssh [2018/07/21 17:32] oemb1905computing:ssh [2021/10/15 17:53] (current) oemb1905
Line 31: Line 31:
   chmod 700 ~/.ssh    chmod 700 ~/.ssh 
   chmod 644 ~/.ssh/id_rsa.pub   chmod 644 ~/.ssh/id_rsa.pub
-  chmod 600 ~/.ssh/id_rsahttps://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server+  chmod 600 ~/.ssh/id_rsa
   chmod 755 ~/   chmod 755 ~/
  
Line 39: Line 39:
      
 config options for /etc/ssh/sshd_config config options for /etc/ssh/sshd_config
 +   
 +  Port 53535 
 +  PubkeyAuthentication yes 
 +  PasswordAuthentication no 
 +  PermitRootLogin prohibit-password
   Protocol 2   Protocol 2
-  AllowUsers sexa +  AllowUsers sally 
-  PermitRootLogin no+  AllowUsers johnny 
 +  PermitEmptyPasswords no 
 +  X11Forwarding yes 
 +  PrintMotd yes 
 +  ChallengeResponseAuthentication no 
 +  UsePAM yes 
 +   
 +Then, always restart the service
      
   sudo systemctl restart sshd.service   sudo systemctl restart sshd.service
      
-Enable Firewall 
- 
-https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-debian-8 
- 
-https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04 
- 
-https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server 
- 
-https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-debian-8 
- 
-https://www.digitalocean.com/community/tutorials/how-to-install-moodle-on-ubuntu-16-04 
  
-https://www.digitalocean.com/community/tutorials/an-introduction-to-securing-your-linux-vps 
  
  
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2018/05/19 20:03//+ --- //[[jonathan@haacksnetworking.com|oemb1905]] 2021/10/15 11:53//
  
computing/ssh.1532194377.txt.gz · Last modified: 2018/11/25 01:33 (external edit)