Fixed bugs with copying .ssh keys and mysql access