ssh dfinity-nix-docker
lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
-bash-4.4# nix-env -iA nixos.curl
installing 'curl-7.68.0'
warning: unable to download 'https://cache.nixos.org/lxw9pidjbdhpg4izygyr8khrzjzfydz9.narinfo': SSL peer certificate or SSH remote key was not OK (60); retrying in 341 ms
...
This usually implies that NIX_SSL_CERT_FILE is not properly set. If I check on the machine:
Thus, I think this is a bug. My wild guess would be that sshDocker defines SSL_CERT_FILE=$SSL_CERT_FILE (here), yet image only exports NIX_SSL_CERT_FILE (here). In f750cee621610b0b5718afcf20f922c39a3a6da0 image has been changed to export NIX_SSL_CERT_FILE instead of SSL_CERT_FILE.
On a freshly set up system, I see this:
This usually implies that
NIX_SSL_CERT_FILE
is not properly set. If I check on the machine:The variable is not there, and
SSL_CERT_FILE
is empty. Checking/etc/bashrc
shows the following:Thus, I think this is a bug. My wild guess would be that
sshDocker
definesSSL_CERT_FILE=$SSL_CERT_FILE
(here), yetimage
only exportsNIX_SSL_CERT_FILE
(here). In f750cee621610b0b5718afcf20f922c39a3a6da0image
has been changed to exportNIX_SSL_CERT_FILE
instead ofSSL_CERT_FILE
.