in reply to Re^7: OpenSSH and multiple users
in thread OpenSSH and multiple users

You can always use Expect to talk to the subshell started by su - admin. See How to use Expect with Net::OpenSSH.