Is '192.168.1.181' in .ssh/knownhosts for the user the script is running as?
In reply to Re^5: Net::SSH::Expect login using SSH keys by cjb in thread Net::SSH::Expect login using SSH keys by ashok.g