#!/bin/bash

ssh_clean ()
{
	ssh-keygen -R "[127.0.0.1]:4242" >/dev/null 2>&1
}

ssh_exec ()
{
	export SSHPASS="${SSHPASS-Born2beRoot}"
	./ssh.exp -p 4242 ${USER}@127.0.0.1 $@ 2>&1 \
		| grep -v -i -e '^Warning: Permanently added' -e ' password:' -e '^spawn ssh'
}

main ()
{
	ssh_clean
	ssh_exec $@
}

main $@
exit $?

#42
