Fixed typo.
Use ssh-copy-id instead of do all the work by yourself
Use 'ssh reload' insted of 'ssh restart'