Blame tests/p_openssh/_helper_sshd_user_login.expect

Steve Barnes d25592
#!/usr/bin/expect -f
Steve Barnes d25592
# Author: Athmane Madjoudj <athmanem@gmail.com>
Steve Barnes d25592
Steve Barnes d25592
set timeout 2
Steve Barnes d25592
spawn ssh -o StrictHostKeyChecking=no sshtest@localhost /bin/ls
Steve Barnes d25592
match_max 6000
Steve Barnes d25592
expect "*?assword:*"
Steve Barnes d25592
send -- "sshtest\r"
Steve Barnes d25592
send -- "\r"
Steve Barnes d25592
expect eof