in reply to How to connect to remote machine

The error message you got is pretty clear, you told it ssh to a host named 'hostname', and it couldn't find a host with that name. Perhaps you wanted to ssh to "$user\@$hostname" instead of 'user@hostname'?


We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re^2: How to connect to remote machine
by aalneyperl (Acolyte) on Jan 23, 2008 at 09:28 UTC
    hi, I corrected that ssh('$user\@$hostname','$command'); and still it gives me the same error.:(