Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ssh root without password on FreeBSD
  2. ====================================
  3.  
  4. If you have some toy boards in your internal network, then you can
  5. happily live without password and key. As I learned today, setting
  6. following stuff in `/etc/ssh/sshd_config` is not enough:
  7.  
  8. PermitRootLogin yes
  9. PermitEmptyPasswords yes
  10.  
  11. You have to edit `/etc/pam.d/sshd` too and append to `pam_unix.so`
  12. module in `auth` facility `nullok` argument. The line will look like:
  13.  
  14. auth required pam_unix.so no_warn try_first_pass nullok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement