#!/bin/bash

if [ "$1" = "" ] ; then 
/bin/cat /usr/local/etc/sshd_config  | /bin/sed -e 's/passwordauthentication no/passwordauthentication yes/g' > /tmp/sshd_config.tmp 

cp /tmp/sshd_config.tmp /usr/local/etc/sshd_config
else 
/bin/cat /usr/local/etc/sshd_config  | /bin/sed -e 's/passwordauthentication yes/passwordauthentication no/g' > /tmp/sshd_config.tmp 

cp /tmp/sshd_config.tmp /usr/local/etc/sshd_config

fi
