mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-08-24 11:18:41 +02:00
- Updated code to dynamic load Lsa functions until RS5 SDK includes them - Add conpty support in openssh - Fixed Wierd characters (?25l) are seen, when logged in from ssh client - Backspace doesn't work in powershell window - Changes to support ssh-shellhost as an alternative shell - Added support to have ssh-shellhost work as a standby shell (ssh-shellhost -c "cmdline") simply executes cmdline via CreateProcess - Added E2E test cases and fixed unittests broken from prior changes - Added PTY launch interface that supports both conpty and ssh-shellhost pty. - Implemented PTY control channel in ssh-shellhost that supports Window resize events. - Fixed regression with starting a PTY session with an explicit command - modified ssh-shellhost pty argument to ---pty to remove ambiguity in cases when both -p and -c are present in commandline. Ex. ssh-shellhost.exe -c "myprogram -p -c argument"
40 lines
1022 B
Bash
40 lines
1022 B
Bash
# $OpenBSD: agent-timeout.sh,v 1.3 2015/03/03 22:35:19 markus Exp $
|
|
# Placed in the Public Domain.
|
|
|
|
tid="agent timeout test"
|
|
if [ "$os" == "windows" ]; then
|
|
echo "skipped (not supported on WINDOWS platform)"
|
|
exit 0
|
|
fi
|
|
SSHAGENT_TIMEOUT=10
|
|
|
|
trace "start agent"
|
|
eval `${SSHAGENT} -s` > /dev/null
|
|
r=$?
|
|
if [ $r -ne 0 ]; then
|
|
fail "could not start ssh-agent: exit code $r"
|
|
else
|
|
trace "add keys with timeout"
|
|
for t in ${SSH_KEYTYPES}; do
|
|
${SSHADD} -t ${SSHAGENT_TIMEOUT} $OBJ/$t > /dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
fail "ssh-add did succeed exit code 0"
|
|
fi
|
|
done
|
|
n=`${SSHADD} -l 2> /dev/null | wc -l`
|
|
trace "agent has $n keys"
|
|
if [ $n -ne 2 ]; then
|
|
fail "ssh-add -l did not return 2 keys: $n"
|
|
fi
|
|
trace "sleeping 2*${SSHAGENT_TIMEOUT} seconds"
|
|
sleep ${SSHAGENT_TIMEOUT}
|
|
sleep ${SSHAGENT_TIMEOUT}
|
|
${SSHADD} -l 2> /dev/null | grep 'The agent has no identities.' >/dev/null
|
|
if [ $? -ne 0 ]; then
|
|
fail "ssh-add -l still returns keys after timeout"
|
|
fi
|
|
|
|
trace "kill agent"
|
|
${SSHAGENT} -k > /dev/null
|
|
fi
|