Add ssh function.

Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>