in reply to Unable to ssh in linux box

I recently changed providers. Everything works, but the provider insists on muscling-out "localhost". The result is that when I try to use a ssh module, it comes back with "Bad Hostname". Make sure that localhost is working, or use your host's info.

Replies are listed 'Best First'.
Re^2: Unable to ssh in linux box
by pinnacle (Acolyte) on May 12, 2011 at 17:14 UTC

    Reply to all

    I tried "uname -n" it still gives "tic-rhel5-20-12"

    localhost is working fine

    I escaped

    my $cmd = "ls \-l \/root";

    Still same error Net::SSH: Bad host name: tic-rhel5-20-12

      It works for me now, I troubleshooted myself, I changed the hostname to actual "ip address" and username to just "root" it worked for me