fix bug and add ssh key to manager