Last active
January 17, 2019 10:29
-
-
Save hoangdh/3052c7c05bbad37ab5e141d3696155bd to your computer and use it in GitHub Desktop.
Auto insert Public key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mkdir -p ~/.ssh/ | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCg/QfGNy3EUYhBh6mtibywZofLY8IP4oAKhyHc7DdgDlWODpcdAKM7FEA89fV4CwEZ48/ywMoWPJAylPYgG4D8yhDe9TcQTfVPdktfoYJMiHL4kASzEf/MIHpH0fcWRZf/nccXyaLH2JrAbW9RUyQQzxzYoV5lM8z8DthMS9sEwdgZEmm413uWkfK3AkQ/aAMxyaEaZgt/piLjuSh2wZAWw9BWMEg+s3c6XaK1RAe6xJcKWfRJzox29602AlgpzIYmIRbp6YQFp3dCtfrGOG3ri2Ik5kjoxEaStDw2UCVYTDt+HFe7pmlYqSapg/JpVUpmg6mn6zT/2GaiT1mMxjV hoangdh" >> ~/.ssh/authorized_keys | |
| chmod 700 ~/.ssh/ | |
| chmod 600 ~/.ssh/authorized_keys | |
| echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment