$ ssh [email protected] PTY allocation request failed on channel 0 Hi sannaha! You've successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed.
# 确保snapd版本是最新的 $ snap install core; sudo snap refresh core 2021-06-05T13:53:09+08:00 INFO Waiting for automatic snapd restart... core 16-2.50.1 from Canonical✓ installed snap "core" has no updates available
# 移除yum上的certbot,进一步确保certbot是通过snap安装的 $ yum remove certbot Loaded plugins: fastestmirror No Match for argument: certbot No Packages marked for removal
# 获取证书并让certbot自动编辑Nginx配置以提供服务,一步开启HTTPS访问 $ certbot --nginx Saving debug log to /var/log/letsencrypt/letsencrypt.log Enter email address (used for urgent renewal and security notices) (Enter 'c' to cancel): [email protected]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must agree in order to register with the ACME server. Do you agree? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (Y)es/(N)o: y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Would you be willing, once your first certificate is successfully issued, to share your email address with the Electronic Frontier Foundation, a founding partner of the Let's Encrypt project and the non-profit organization that develops Certbot? We'd like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (Y)es/(N)o: y Account registered.
Which names would you like to activate HTTPS for? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: sannaha.moe - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter 'c' to cancel): 1 Requesting a certificate for sannaha.moe
Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/sannaha.moe/fullchain.pem Key is saved at: /etc/letsencrypt/live/sannaha.moe/privkey.pem This certificate expires on 2021-09-03. These files will be updated when the certificate renews. Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate Successfully deployed certificate for sannaha.moe to /etc/nginx/conf.d/blog.conf Congratulations! You have successfully enabled HTTPS on https://sannaha.moe