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! |
|---|
In reply to Re: How to connect to remote machine
by jasonk
in thread How to connect to remote machine
by aalneyperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |