Hacker News new | past | comments | ask | show | jobs | submit login
Restricting SSH connections to devices within a Tailscale network (github.com/simonw)
3 points by tosh on April 23, 2020 | hide | past | favorite | 3 comments



I do:

  echo | tee -a /etc/ssh/sshd_config
  echo "AllowUsers *@xxx.xxx.xxx.xxx" | tee -a /etc/ssh/sshd_config
  echo "sshd:   xxx.xxx.xxx.xxx" | tee -a /etc/hosts.allow
  echo "All:   All" | tee -a /etc/hosts.deny


Also cool!

Why "| tee -a" instead of ">>"?


Not sure why I used tee (did this a long time ago). Maybe I was having some trouble with >> or maybe thought tee read more cleanly. Don't remember.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: