Copyed from sshdemo

Signed-off-by: Steve Missing <nevermissing@vip.qq.com>