3 ms·
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/h
by julienchastang 7y ago
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
- carapace 7y agoAlso cool! Why "| tee -a" instead of ">>"?
- julienchastang 7y agoNot 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.