fix deploy-rs: use SSH port 2299 and user steffen instead of root

deploy-rs was configured with default port 22 and user root, but
SSH runs on port 2299 and root login is disabled. Also fix ssh-keyscan
in the deploy workflow to use the correct port.
This commit is contained in:
steffen 2026-03-14 14:11:08 +01:00
parent 72e53ea17f
commit 3f07d27c78
2 changed files with 7 additions and 2 deletions

View file

@ -29,7 +29,7 @@ jobs:
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519 echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H cryodev.xyz >> ~/.ssh/known_hosts ssh-keyscan -p 2299 -H cryodev.xyz >> ~/.ssh/known_hosts
- name: Deploy with deploy-rs - name: Deploy with deploy-rs
run: nix run github:serokell/deploy-rs -- -s .#cryodev-main run: nix run github:serokell/deploy-rs -- -s .#cryodev-main

View file

@ -123,8 +123,13 @@
nodes = { nodes = {
cryodev-main = { cryodev-main = {
hostname = constants.domain; hostname = constants.domain;
sshOpts = [
"-p"
"2299"
];
profiles.system = { profiles.system = {
user = "root"; user = "steffen";
sshUser = "steffen";
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.cryodev-main; path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.cryodev-main;
}; };
}; };