1 # $OpenBSD: connect-uri.sh,v 1.1 2017/10/24 19:33:32 millert Exp $
2 # Placed in the Public Domain.
6 # Remove Port and User from ssh_config, we want to rely on the URI
7 cp $OBJ/ssh_config $OBJ/ssh_config.orig
8 egrep -v '^ +(Port|User) +.*$' $OBJ/ssh_config.orig > $OBJ/ssh_config
12 verbose "$tid: no trailing slash"
13 ${SSH} -F $OBJ/ssh_config "ssh://${USER}@somehost:${PORT}" true
15 fail "ssh connection failed"
18 verbose "$tid: trailing slash"
19 ${SSH} -F $OBJ/ssh_config "ssh://${USER}@somehost:${PORT}/" true
21 fail "ssh connection failed"
24 verbose "$tid: with path name"
25 ${SSH} -F $OBJ/ssh_config "ssh://${USER}@somehost:${PORT}/${DATA}" true \
28 fail "ssh connection succeeded, expected failure"