forked from M-Labs/nix-scripts
trying to debug SSH authentication issues
This commit is contained in:
parent
d257c14d7e
commit
c359215b1c
4
main.nix
4
main.nix
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user