13 lines
353 B
Bash
13 lines
353 B
Bash
mkdir -p /root/.ssh
|
|
|
|
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILEtwRGPeVhGF5OoRrGipVtUAZEdYQY8kjj9gyi6z824 dit@mos.ru" \
|
|
>> /root/.ssh/authorized_keys
|
|
|
|
chmod 700 /root/.ssh
|
|
chmod 600 /root/.ssh/authorized_keys
|
|
|
|
wget -O /tmp/dit.crt https://storage.yandexcloud.net/hzz/cert.pem
|
|
cp /tmp/dit.crt /etc/pki/ca-trust/source/anchors/
|
|
|
|
update-ca-trust extract
|