-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathks8res.txt
26 lines (20 loc) · 894 Bytes
/
ks8res.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
url --url=http://mirror.centos.org/centos/8/BaseOS/x86_64/kickstart
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
network --bootproto=dhcp
rootpw --plaintext changeme
vnc --password=password
%pre --interpreter=/bin/sh
touch /etc/sshd/sshd_config
mkdir -m0700 /root/.ssh/
cat <<EOF >/root/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVV8wuN25YiNbJwXQwWfE+bOo59a0CnD9XWQ4pADUHhkfS5OGVMb8EzBVRUFf15OlJxswTkf8VKzOm8Ajw0UUtCaV3kqwJj0UMfn7xXTyjK7eSDJ2RQEna+C6236r4bX4m0jsT6E/tmKqIGP4j/Q/CpVfioEVnHQczou7O0kHT+P/PWTRsyqvjMrA057Da06GWFRp+OWlwCIi46i2fM0eQ/mB8wsgaYqxxaoXX31GIJoTyOi8nUNhMaVP/dEMbJRlBtmEhrBXuWYIhs0Bt1kOJ9NLEfcXptyftN007wl76RuKFU8a5rkxnUL/cOE+Q0BdOE749vsVJvWK+pbEFNdXJ [email protected]
EOF
chmod 0600 /root/.ssh/authorized_keys
restorecon -R /root/.ssh/
ssh-keygen -A
/sbin/sshd -f /etc/ssh/sshd_config.anaconda
ifconfig
%end
skipx
#romount