initial checkin

This commit is contained in:
Radar231 2022-01-03 05:57:59 -05:00
commit f39affb4b3
4 changed files with 59 additions and 0 deletions

25
alpinit Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
###########################################################################
#
# Simple script to install openssh server and setup the root user for
# remote ssh access from my account. This enables the target host for
# ansible management.
#
###########################################################################
apk add openssh
apk add python3
ln -s /usr/bin/python3 /usr/bin/python
rc-update add sshd
echo "PermitRootLogin prohibit-password" >>/etc/ssh/sshd_config
service sshd restart
passwd -u root
mkdir /root/.ssh
chmod 700 /root/.ssh
curl http://delinit.lan/ssh-keys -o /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys

20
debinit Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
###########################################################################
#
# Simple script to install openssh server and setup the root user for
# remote ssh access from my account. This enables the target host for
# ansible management.
#
###########################################################################
apt -y install openssh-server
apt -y install python3
echo "PermitRootLogin prohibit-password" >>/etc/ssh/sshd_config
systemctl restart sshd
mkdir /root/.ssh
chmod 700 /root/.ssh
curl http://delinit.lan/ssh-keys -o /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys

11
index.html Normal file
View File

@ -0,0 +1,11 @@
<html>
<body>
<H2>http://delinit.lan</H2>
<p>
<ul>
<li>http://delinit.lan/debinit</li>
<li>http://delinit.lan/alpinit</li>
</ul>
</body>
</html>

3
ssh-keys Executable file
View File

@ -0,0 +1,3 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCgNeo2NotlS/WPoB/YTiSovxzR/puknjqsVBc16zS0xwBUD1fFQEVNypUtzSlWKy36wxX6YJsT7fBNkLq6QoY0FPbWa7l5KlUvHYASeMmZAH81pYPcMwhQverwmNjPoABYyzTe0658Qz6qbB8CTD+r4xKYCqELlk8VkLPSgA1jJsNaurHZS6iN0EgdqyZ57h1/sZi8laVBKcU9yH0UOro2o7Phxo3/vT7w7px2pyExXwYGwhKxuOaitdq9Gv8qDIwt46Gj5Wm5CqU2zzT1VBg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