Thanks a lot all you guys. I haven't tried with SSH yet but I going to install that module. We are not much concerned here with security here as the tool developed in perl is for internal use. But during it' execution we need to logon to remote solaris machine, and then there by login as Superuser or root user. Normal login using Telnet worked just fine but login as Superuser started giving problems.