From c359215b1c4d0cc6323cef6d3b1d84cd67c86a3e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 14 Mar 2019 14:20:28 +0800 Subject: [PATCH] trying to debug SSH authentication issues --- main.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.nix b/main.nix index 0112450..7f58007 100644 --- a/main.nix +++ b/main.nix @@ -55,9 +55,13 @@ in phases = [ "buildPhase" ]; buildPhase = '' + whoami export HOME=`mktemp -d` mkdir $HOME/.ssh cp /opt/hydra_id_rsa $HOME/.ssh/id_rsa + cp /opt/hydra_id_rsa.pub $HOME/.ssh/id_rsa.pub + echo "rpi,192.168.1.188 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMc7waNkP2HjL5Eo94evoxJhC8CbYj4i2n1THe5TPIR3" > $HOME/.ssh/known_hosts + chmod 600 $HOME/.ssh/id_rsa artiq_flash -t kc705 -H rpi sleep 15 # ping: socket: Operation not permitted