Skip to content

Instantly share code, notes, and snippets.

View hdp-setup.txt
####### Iptables Disable
service iptables status
service iptables stop
chconfig iptables off
###### Edit sshd_config file
file=/etc/ssh/sshd_config
cp -p $file $file.old && awk ' $1=="PermitRootLogin" {$2="yes"} $1=="PasswordAuthentication" {$2="yes"} $1=="#PubkeyAuthentication" {$1="PubkeyAuthentication"} {print} ' $file.old > $file