trying to debug SSH authentication issues

This commit is contained in:
Sebastien Bourdeauducq 2019-03-14 14:20:28 +08:00
parent d257c14d7e
commit c359215b1c
1 changed files with 4 additions and 0 deletions

View File

@ -55,9 +55,13 @@ in
phases = [ "buildPhase" ]; phases = [ "buildPhase" ];
buildPhase = buildPhase =
'' ''
whoami
export HOME=`mktemp -d` export HOME=`mktemp -d`
mkdir $HOME/.ssh mkdir $HOME/.ssh
cp /opt/hydra_id_rsa $HOME/.ssh/id_rsa 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 artiq_flash -t kc705 -H rpi
sleep 15 sleep 15
# ping: socket: Operation not permitted # ping: socket: Operation not permitted