{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/256","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/256/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/256/events","html_url":"https://github.com/NixOS/nixops/issues/256","id":53596959,"number":256,"title":"Unknown pwds requested when deploying very simple container.","user":{"login":"jraygauthier","id":4611077,"avatar_url":"https://avatars.githubusercontent.com/u/4611077?v=3","gravatar_id":"","url":"https://api.github.com/users/jraygauthier","html_url":"https://github.com/jraygauthier","followers_url":"https://api.github.com/users/jraygauthier/followers","following_url":"https://api.github.com/users/jraygauthier/following{/other_user}","gists_url":"https://api.github.com/users/jraygauthier/gists{/gist_id}","starred_url":"https://api.github.com/users/jraygauthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraygauthier/subscriptions","organizations_url":"https://api.github.com/users/jraygauthier/orgs","repos_url":"https://api.github.com/users/jraygauthier/repos","events_url":"https://api.github.com/users/jraygauthier/events{/privacy}","received_events_url":"https://api.github.com/users/jraygauthier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-07T04:39:27Z","updated_at":"2015-05-21T00:23:53Z","closed_at":"2015-05-21T00:23:53Z","body":"Using the container proposed in the manual at:\r\n<http://nixos.org/nixops/manual/#idm140737319351408> but\r\ninstead of using Vbox, I use `container` as follow:\r\n\r\n~~~\r\n{\r\n  network.description = \"Web server\";\r\n\r\n  webserver =\r\n    { config, pkgs, ... }:\r\n    { deployment.targetEnv = \"container\";\r\n      services.httpd.enable = true;\r\n      services.httpd.adminAddr = \"alice@example.org\";\r\n      services.httpd.documentRoot = \"${pkgs.valgrind}/share/doc/valgrind/html\";\r\n      networking.firewall.allowedTCPPorts = [ 80 443 ];\r\n    };\r\n}\r\n~~~\r\n\r\nHere's what I get:\r\n\r\n> [~]$ nixops deploy -d webserver-cont\r\n> webserver> building initial configuration...\r\n> webserver> creating container...\r\n> Password: \r\n> Password: \r\n> Password: \r\n> root@localhost's password: \r\n> Permission denied, please try again.\r\n> root@localhost's password: \r\n> Received disconnect from 127.0.0.1: 2: Too many authentication failures for root\r\n> error: unable to start SSH master connection to ‘root@localhost’\r\n\r\nNow, what is the password prompted at `Password` ? I tried my user password, my root password and invalid password and it does not seem to matter. I get asked trice and afterward I get prompted\r\nfor the root password of some machine through ssh (most probably the machine I try to deploy).\r\nAgain, what is this password supposed to be?\r\n\r\nNote also that I use a very recent version of nixops:\r\n025030d841d9b6d070f8f7fbcec8b537a674d972.\r\n\r\nI also tried declarative containers in my `configuration.nix` and it work pretty well."},"comment":{"url":"https://api.github.com/repos/NixOS/nixops/issues/comments/104078220","html_url":"https://github.com/NixOS/nixops/issues/256#issuecomment-104078220","issue_url":"https://api.github.com/repos/NixOS/nixops/issues/256","id":104078220,"user":{"login":"jraygauthier","id":4611077,"avatar_url":"https://avatars.githubusercontent.com/u/4611077?v=3","gravatar_id":"","url":"https://api.github.com/users/jraygauthier","html_url":"https://github.com/jraygauthier","followers_url":"https://api.github.com/users/jraygauthier/followers","following_url":"https://api.github.com/users/jraygauthier/following{/other_user}","gists_url":"https://api.github.com/users/jraygauthier/gists{/gist_id}","starred_url":"https://api.github.com/users/jraygauthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraygauthier/subscriptions","organizations_url":"https://api.github.com/users/jraygauthier/orgs","repos_url":"https://api.github.com/users/jraygauthier/repos","events_url":"https://api.github.com/users/jraygauthier/events{/privacy}","received_events_url":"https://api.github.com/users/jraygauthier/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T00:23:52Z","updated_at":"2015-05-21T00:23:52Z","body":"The cause was nixos's default value  `\"without-password\"` for `services.openssh.permitRootLogin`.\r\n\r\nRebuilding my computer's nixos configuration with `services.openssh.permitRootLogin=\"yes\"`\r\nsolved my problem."}}