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