update ssh target directory