connect.sh 407 B

12345678910111213141516171819
  1. # $OpenBSD: connect.sh,v 1.8 2020/01/25 02:57:53 dtucker Exp $
  2. # Placed in the Public Domain.
  3. tid="simple connect"
  4. start_sshd
  5. trace "direct connect"
  6. ${SSH} -F $OBJ/ssh_config somehost true
  7. if [ $? -ne 0 ]; then
  8. fail "ssh direct connect failed"
  9. fi
  10. trace "proxy connect"
  11. ${SSH} -F $OBJ/ssh_config -o "proxycommand $NC %h %p" somehost true
  12. if [ $? -ne 0 ]; then
  13. fail "ssh proxycommand connect failed"
  14. fi