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:
parent
72e53ea17f
commit
3f07d27c78
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue