add service for ssh and fix bug