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

rohit yadav rohityadav at utexas.edu
Fri Feb 17 21:56:43 CET 2017


On Fri, Feb 17, 2017 at 1:54 PM, rohit yadav <rohityadav at utexas.edu> wrote:

>
>
> 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>

​Please ignore this thread. It is working fine. The ssh-key I added had a
space between the strings. it works fine now.​

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


More information about the nix-dev mailing list