changed ssh keys
This commit is contained in:
parent
578ddc7921
commit
54caab4d8c
|
@ -58,11 +58,11 @@
|
|||
"nix-secrets": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1716024725,
|
||||
"narHash": "sha256-rAdVGcOuQPcFJ2FmufePv2oTvS7FKNLdenwmo2O11IY=",
|
||||
"lastModified": 1716039101,
|
||||
"narHash": "sha256-jaliFlqz3HKW+tsW3Onqtbw3w6mLTYJJZZQrrPmxZ8Q=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "a9a7e1913a46fa4ab5deea15e0d469579d9d9dac",
|
||||
"revCount": 11,
|
||||
"rev": "7cef1d6f77d212a887e6660f85b28f8b20181d9b",
|
||||
"revCount": 13,
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
|
||||
},
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILywv6g5k5cOVplxgbbStrGf3qYVukgCcd80TJSBM8e8 sam@nixos
|
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIYioCEiSLTNr3QqWEvcs8iIS4XmQUDfRg4psHyowzwp sam@nixdev
|
|
@ -76,12 +76,10 @@
|
|||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
#libinput.enable = true;
|
||||
displayManager.lightdm.enable = true;
|
||||
desktopManager = {
|
||||
cinnamon.enable = true;
|
||||
};
|
||||
#displayManager.defaultSession = "cinnamon";
|
||||
};
|
||||
|
||||
security.pam = {
|
||||
|
|
|
@ -36,7 +36,7 @@ ssh-copy-id -i "$(readlink -n "$HOME/.ssh/deploy_key-ssh-ed25519.pub" )" "root@$
|
|||
overwrite=""
|
||||
[ -f "$KEY_DIR/$KEY_NAME" ] && read -p "Key exists, would you like to overwrite it? (yes|no) " overwrite
|
||||
|
||||
[ -z "$overwrite" ] || [ "$overwrite" == "yes" ] && ssh-keygen -t ed25519 -f "$KEY_DIR/$KEY_NAME" -C "$hostname@$ip" -N ""
|
||||
[ -z "$overwrite" ] || [ "$overwrite" == "yes" ] && ssh-keygen -t ed25519 -f "$KEY_DIR/$KEY_NAME" -C "$username@$hostname" -N ""
|
||||
|
||||
echo "Copying ssh key to target host:"
|
||||
scp -i "$KEY_DIR/$KEY_NAME"* "root@$ip:/etc/ssh/"
|
||||
|
|
Loading…
Reference in New Issue