Comments (2)
Do I read it correctly, that the key is hardcoded to be deployed to the root user?
Line 612 in fc9b55c
Is the code then using the generated ssh key for root, but the username specified in config?
nixops/nixops/backends/__init__.py
Line 77 in fc9b55c
from nixops.
Ah, a simple fix is to add the root authorizedKeys to the targetUser authorizedKeys
let
targetUser = "nixos";
in
{
...
deployment.targetUser = targetUser;
users.extraUsers."${targetUser}".openssh.authorizedKeys.keys =
config.users.extraUsers.root.openssh.authorizedKeys.keys;
...
}
from nixops.
Related Issues (20)
- repl reflection HOT 2
- Document flakes usage
- Document the status of the project HOT 7
- `nixops deploy` fails with `error: attribute 'type' missing` HOT 1
- Nixpkgs marked poetry to be insecure (indirectly). HOT 1
- nixops check: `run-initramfs.mount [failed]`
- Configure black as pre-commit hook
- Documentation: How to specify nixopsConfiguration.default? HOT 2
- How does nixops work? HOT 2
- `Pseudo-terminal will not be allocated because stdin is not a terminal.` HOT 1
- README instructions not working HOT 1
- Hangs at `copying closure...` HOT 13
- Abstract out SSH configuration
- error: function 'mkPackageOption' called with unexpected argument 'nullable' HOT 4
- `resources.elasticIPs.<name>` not creating elastic IP
- installation fails when following the official guide HOT 2
- typeguard exception with deployment.keys HOT 14
- nixops closes SSH connection when running `nixops check` HOT 1
- Clarify the status of NixOps HOT 28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixops.