modify ssh model and add unittest