We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0b13b commit f19284dCopy full SHA for f19284d
cloud-init/basic.yml
@@ -16,11 +16,6 @@ runcmd:
16
sed -i -e '/^PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config
17
sed -i -e '/^PubkeyAuthentication/s/^.*$/PubkeyAuthentication yes/' /etc/ssh/sshd_config
18
sed -i -e '$aAllowUsers freecodecamp' /etc/ssh/sshd_config
19
- # Configure hostname
20
- - |
21
- sed -i '/preserve_hostname: false/c\preserve_hostname: true' /etc/cloud/cloud.cfg
22
- hostnamectl set-hostname ubuntu-server
23
- echo "ubuntu-server" > /etc/hostname
24
# :-----------------------: WARNING :-----------------------:
25
#
26
# This next line should be the last command in the list,
0 commit comments