[Nix-dev] Unable to ssh into a GCE nixos machine

rohit yadav rohityadav at utexas.edu
Fri Feb 17 20:54:12 CET 2017


On Fri, Feb 17, 2017 at 1:52 PM, Rickard Nilsson <rickard.nilsson at telia.com>
wrote:

> On 02/17/2017 08:46 PM, rohit yadav wrote:
>
>>
>>
>> On Fri, Feb 17, 2017 at 1:11 PM, Rickard Nilsson
>> <rickard.nilsson at telia.com <mailto:rickard.nilsson at telia.com>> wrote:
>>
>>     On 02/17/2017 08:05 PM, rohit yadav wrote:
>>
>>         Hi,
>>
>>         I followed the following tutorial to create a NixOS VM @GCE but
>>         cannot
>>         login. I did setup all the keys are stated. Anyone faced this
>>         problem
>>         before.
>>
>>         https://nixos.org/wiki/Installing_NixOS_on_GCE
>>         <https://nixos.org/wiki/Installing_NixOS_on_GCE>
>>
>>
>>     Can you tell us a bit more about what errors you get? Maybe try
>>     running your ssh client with verbose logging.
>>
>>     For GCE, you should be able to look at the serial console through
>>     the web interface. That might give you hints about any services that
>>     might have failed.
>>
>> Here is the output of the serial console:
>> http://pastebin.com/wRYaadFY
>>
>> It seems that ssh-daemon is starting fine and all the keys are
>> downloaded as expected. In verbose mode, it shows the following
>> http://pastebin.com/BKx94sfN
>>
>> Somehow it is not able to authenticate with key.
>>
>
> This is may be a stupid question, but are you connecting as root user?

​I tried both to connect to nixos machine.

ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o
StrictHostKeyChecking=ask root at XXX.XXX.XXX.XXX​


>
>
>   / Rickard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170217/657d0996/attachment.html>


More information about the nix-dev mailing list