2023-01-29 23:42:58 +01:00
|
|
|
# Do not copy this! It is insecure. This is only okay because we are testing.
|
|
|
|
{
|
|
|
|
system.activationScripts.extraUserActivation.text = ''
|
2023-05-04 01:25:54 +02:00
|
|
|
echo "Installing system SSH host key"
|
2023-01-29 23:42:58 +01:00
|
|
|
sudo cp ${../example_keys/system1.pub} /etc/ssh/ssh_host_ed25519_key.pub
|
|
|
|
sudo cp ${../example_keys/system1} /etc/ssh/ssh_host_ed25519_key
|
|
|
|
sudo chmod 644 /etc/ssh/ssh_host_ed25519_key.pub
|
|
|
|
sudo chmod 600 /etc/ssh/ssh_host_ed25519_key
|
2023-05-04 01:25:54 +02:00
|
|
|
|
|
|
|
echo "Installing user SSH host key"
|
|
|
|
mkdir -p $HOME/.ssh
|
|
|
|
cp ${../example_keys/user1.pub} $HOME/.ssh/id_ed25519.pub
|
|
|
|
cp ${../example_keys/user1} $HOME/.ssh/id_ed25519
|
|
|
|
chmod 644 $HOME/.ssh/id_ed25519.pub
|
|
|
|
chmod 600 $HOME/.ssh/id_ed25519
|
2023-01-29 23:42:58 +01:00
|
|
|
'';
|
|
|
|
}
|