Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
fix ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous committed Dec 8, 2024
1 parent ab5b8ae commit ab9a226
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .git-preserve-permissions
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#FORMAT:1.3
0644:0:0:.git-preserve-permissions
0755:0:0:.github/workflows
0755:0:0:.github
0644:0:0:.github/workflows/update-hosts.yml
0644:0:0:.github/workflows/update-sshkeys.yml
0644:0:0:.gitignore
0644:0:0:LICENSE
0644:0:0:Makefile
0644:0:0:README.md
0755:0:0:etc/prometheus
0755:0:0:etc
0644:0:0:etc/prometheus/prometheus.yml
0755:0:0:files
0644:0:0:files/gitignore
0755:0:0:files/gitignore.sh
0755:0:0:files/grafana
0644:0:0:files/grafana/dashboards.yml
0755:0:0:files/grafana/dashboards
0644:0:0:files/grafana/dashboards/summary.json
0644:0:0:files/grafana/datasources.yml
0755:0:0:files/pubkey
0644:0:0:files/pubkey/ip-192-168-0-11
0644:0:0:files/vimrc
0700:0:0:root/.ssh
0700:0:0:root
0600:0:0:root/.ssh/authorized_keys
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!.git-preserve-permissions
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sshd: /etc/sudoers /etc/ssh/sshd_config
echo 'PermitUserEnvironment yes' >> $@
echo 'PermitRootLogin without-password' >> $@
sshd -t
systemctl reload sshd
systemctl reload ssh

/etc/ssh/sshd_config.bak:
cp -p /etc/ssh/sshd_config $@
Expand Down
1 change: 1 addition & 0 deletions files/pubkey/ip-192-168-0-11
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzs4D/E177lu14hrxda/uVPoilxt1v76WCvqNAZqQGpH1bBIMLniI1+03HMl6jYIYHeMNCmfGvECLNajrKmWMVKb/HfygRvTdCP8wARIiMhNOCc/2sSwVzw/RsBLBuzLguZFiV66tviZ8ldv58hvxtYhFFPYLOyrqKY6yRGk+wzJ+rvbKNHimpj8jfxInV6ICeKZRaBYsKnjTiho/pAqjlxURbOt4ZMoEihZewzFe9hgJCbHU/QCU0Q7ly10bGBttdGHOwh2MvR23SoWwCTVOC+yHmZL4hC2ZSI24qkOusY9fxpF5jArcMsjcFesEcOY0jhfQt6jIavmv9FPtd96+uDCNIKXURVrmOlRIMbGc/yo+/6mOPd1cK3RI84P/rUTBJAMUUmyPRm+t5PL3EX9fv0BgcS09uWqswjKy91j5VKA6FNejoPJRQf/pUIzTOMZRmtuyNX2hB6Jxyix4Dd+plnHokm0Gg1McPWu4PO4/xU0gKqGxz8CCfRC+z8Xl4Bjk= root@ip-192-168-0-11
2 changes: 2 additions & 0 deletions root/.ssh/authorized_keys
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10;exit 142" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGL/eLzf7RMAE6dreme6E6NImWFUbZyaAhPKS4flaUa packer_6754a491-5553-5b41-bd28-963287df0a72
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10;exit 142" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBTakSSBST29nctsLeTJ24172K8sJpoIE58ohdt45U4 packer_6754a98b-73fa-e45d-9417-e76e1271e1f2

0 comments on commit ab9a226

Please sign in to comment.