Skip to content

Commit

Permalink
sysctl -p add
Browse files Browse the repository at this point in the history
  • Loading branch information
runalsh committed Mar 3, 2024
1 parent 3945427 commit 10dfac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
sysctl -p
echo -e "runalsh" | passwd root
mkdir -p /root/.ssh/
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByxq8vrVcDlFlXlNUizeE/T2leMF0k6JhaXrdeUtZZj ed25519-key-20240302" >> /root/.ssh/authorized_keys
#sed -ie '0,/#PermitRootLogin prohibit-password/s/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

0 comments on commit 10dfac7

Please sign in to comment.