NOTE: Typically not a great idea for permanent production systems
cat /etc/ssh/sshd_config | grep PermitRootLogin sed -i "s|PermitRootLogin no|PermitRootLogin yes|" /etc/ssh/sshd_config service sshd restart cat /etc/ssh/sshd_config | grep PermitRootLogin
cat /etc/ssh/sshd_config | grep PermitRootLogin sed -i "s|PermitRootLogin yes|PermitRootLogin no|" /etc/ssh/sshd_config service sshd restart cat /etc/ssh/sshd_config | grep PermitRootLogin