Commit 4535bd6
Disable strict host key checking for scp
Prevents errors like:
```
2025-01-24 22:26:11.566 | DEBUG | commonwealth.utils.commands:upload_file:137 - uploading to /boot/firmware/config.txt
2025-01-24 22:26:11.664 | DEBUG | commonwealth.utils.commands:upload_file:145 - CompletedProcess(args=['scp', '-i', '/root/.config/.ssh/id_rsa', '/tmp/file_to_upload', 'pi@localhost:/tmp/uploaded_file'], returncode=255, stdout='', stderr='ssh: connect to host localhost port 22: Connection refused\nscp: Connection closed\n')
2025-01-24 22:26:11.665 | ERROR | commonwealth.utils.commands:upload_file:149 - Failed to upload file: ssh: connect to host localhost port 22: Connection refused
scp: Connection closed
```1 parent eb401be commit 4535bd6
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
0 commit comments