1 2 3 4
#!/bin/bash # Mock ssh that fails to connect echo "ssh: connect to host failed: Connection refused" >&2 exit 255