Refined SSH key copying and set correct permissions