mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update 99-fake_cloud.cfg
This commit is contained in:
parent
b0f3850d74
commit
fc78f970fa
1 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ system_info:
|
||||||
security: http://ports.ubuntu.com/ubuntu-ports
|
security: http://ports.ubuntu.com/ubuntu-ports
|
||||||
|
|
||||||
# configure hostname
|
# configure hostname
|
||||||
hostname: myhost
|
hostname: HostName
|
||||||
|
|
||||||
# configure root user
|
# configure root user
|
||||||
users:
|
users:
|
||||||
|
@ -24,10 +24,10 @@ users:
|
||||||
chpasswd:
|
chpasswd:
|
||||||
expire: false
|
expire: false
|
||||||
list: |
|
list: |
|
||||||
root:LeitboGi0ro
|
root: tmpWORD
|
||||||
users:
|
users:
|
||||||
- name: root
|
- name: root
|
||||||
password: LeitboGi0ro
|
password: tmpWORD
|
||||||
type: text
|
type: text
|
||||||
|
|
||||||
# configure network
|
# configure network
|
||||||
|
@ -42,7 +42,7 @@ network:
|
||||||
|
|
||||||
# later commands
|
# later commands
|
||||||
runcmd:
|
runcmd:
|
||||||
- sed -ri 's/^#?Port.*/Port 22/g' /etc/ssh/sshd_config
|
- sed -ri 's/^#?Port.*/Port sshPORT/g' /etc/ssh/sshd_config
|
||||||
- sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
|
- sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
|
||||||
- sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
|
- sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
|
||||||
- update-rc.d ssh enable
|
- update-rc.d ssh enable
|
||||||
|
|
Loading…
Reference in a new issue