Skip to content

Commit

Permalink
added ssh option to bypass host fingerprint validation
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-jacob committed Jul 26, 2024
1 parent a14762c commit 756de8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
- Once the IP is knonw, add it to my SSH config
- then
```
scp -r -P 22 client/ autopowerX:/tmp/
scp -r -P 22 -o "StrictHostKeyChecking no" client/ autopowerX:/tmp/
ssh autopowerX -p 22
cd /tmp/client
sudo chmod +x deploy.sh && sudo ./deploy.sh
sudo chmod +x signCerts.sh && ./signCerts.sh
sudo shutdown now
```
Currently the last step will not work the first time because the Pi won't know the fingerprint of the server and I don't know how to accept fingerprint automatically (to resolve)


## Folder content
Expand Down
4 changes: 1 addition & 3 deletions client/signCerts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ DEVICENAME=$(hostname)
tmux kill-session -t certs # clean up if session already exists
tmux new-session -d -s certs # create a tmux session
tmux send-keys -t certs '' C-m # wait a bit
tmux send-keys -t certs '' C-m
tmux send-keys -t certs '' C-m
tmux send-keys -t certs "ssh autopower@${REMOTEHOST}" C-m
tmux send-keys -t certs "ssh -o 'StrictHostKeyChecking no' autopower@${REMOTEHOST}" C-m

# clean existing read-only files
echo "cleaning existing files on the server..."
Expand Down

0 comments on commit 756de8d

Please sign in to comment.