def harden(allow_root_login=False, allow_password_auth=False, sshd_config='/etc/ssh/sshd_config'):
 if (not allow_password_auth):
  disable_password_auth(sshd_config=sshd_config)
 if (not allow_root_login):
  disable_root_login(sshd_config=sshd_config)

def harden ( allow_root_login = False , allow_password_auth = False , sshd_config = '/etc/ssh/sshd_config' ) : if ( not allow_password_auth ) : disable_password_auth ( sshd_config = sshd_config ) if ( not allow_root_login ) : disable_root_login ( sshd_config = sshd_config )
apply best practices for ssh security .