unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Matthew Brooks <matthewfbrooks@mailbox.org>
To: help-guix@gnu.org
Subject: Re: offload: error: failed to connect to `#<input-output... Protocol error
Date: Mon, 21 Jan 2019 15:56:02 -0600	[thread overview]
Message-ID: <20190121155602.28a762a4@mailbox.org> (raw)
In-Reply-To: <CAJ3okZ1mmz_XDyvG8o0OA-kbVjFOhTjvuffhPKkEEwjXw5GwRg@mail.gmail.com>

>          (string-append (getenv "HOME")
>                         "/.ssh/identity-for-guix"))))
>...
>
> ERROR] The file does not exist or permission denied:
> "/root/.ssh/identity-for-guix"


The SSH connection is to a regular user on the offload machine. In your example, it is configured to connect to the "simon" account on the offload machine, in the '(user "simon")' part.

The issue is that the guix daemon runs as root, so when it evaluates '(getenv "home")' it points to root's home and not the user's home (thus it looking for the file in "/root/"). If the "identity-for-guix" file is in "/home/simon/.ssh/identity-for-guix", then you must specify that whole path, or specify that you mean the home path for some other user in the (getenv) part. I do not know how to specify someone else's home with getenv though, so I'd suggest that you try manually entering the full path to see if that works.

  reply	other threads:[~2019-01-21 21:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21 16:07 offload: error: failed to connect to `#<input-output... Protocol error zimoun
2019-01-21 21:56 ` Matthew Brooks [this message]
2019-01-22 14:00   ` zimoun
2019-01-23 15:41     ` Ricardo Wurmus
2019-01-28 17:13       ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190121155602.28a762a4@mailbox.org \
    --to=matthewfbrooks@mailbox.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).