https://www.linkedin.com/pulse/lost-ssh-key-cloud-init-answer-himanshoo-wadhwa
#cloud-config
ssh_deletekeys: false
ssh_authorized_keys:
- <ENTER YOUR PUBLIC KEY HERE>
cloud_final_modules:
- [ssh, always]
https://www.linkedin.com/pulse/lost-ssh-key-cloud-init-answer-himanshoo-wadhwa
#cloud-config
ssh_deletekeys: false
ssh_authorized_keys:
- <ENTER YOUR PUBLIC KEY HERE>
cloud_final_modules:
- [ssh, always]
| #!/usr/bin/python2.7 | |
| import pyodbc | |
| import settings # file settings.py | |
| # [SNIP] | |
| try: | |
| if from_field.strip() != "": |
| # ~/.profile: executed by the command interpreter for login shells. | |
| # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
| # exists. | |
| # see /usr/share/doc/bash/examples/startup-files for examples. | |
| # the files are located in the bash-doc package. | |
| # the default umask is set in /etc/profile; for setting the umask | |
| # for ssh logins, install and configure the libpam-umask package. | |
| # umask 022k is set in /etc/profile; for setting the umask | |
| # for ssh logins, install and configure the libpam-umask package. |
| alias please='sudo $(history -p \!\!)' |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| #case $- in | |
| # *i*) ;; | |
| # *) return;; | |
| #esac |
| #Examples | |
| #To get the MD5 fingerprint instead of SHA256: | |
| # Host example.org | |
| # FingerprintHash md5 | |
| Host ubuntu.dev | |
| IdentityFile ~/.ssh/ubuntuvm_rsa | |
| Host github.mit.edu | |
| IdentityFile ~/.ssh/github.mit.edu_rsa | |
| Host github.com | |
| IdentityFile ~/.ssh/github_rsa |
I hereby claim:
To claim this, I am signing this object: