Advertisement
Guest User

Untitled

a guest
Mar 30th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #SFTP tips by 813gan v1
  2. # https://wiki.archlinux.org/index.php/OpenSSH
  3. # https://wiki.archlinux.org/index.php/SSH_keys
  4.  
  5. #in /etc/ssh/sshd_config you need to have followng lines:
  6.  
  7. PasswordAuthentication no #disable passwords
  8. #add next line AFTER generating and updating SSH keys
  9. ChallengeResponseAuthentication no #disable interactive password
  10. PubkeyAuthentication yes #enable pub-key auth
  11. PermitRootLogin no
  12. Protocol 2 #disable insecure SSH v1
  13.  
  14. also consister using nonstandard port (default is 22)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement