We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e43d093 + dc0ccfc commit 7f757f0Copy full SHA for 7f757f0
labgrid/driver/shelldriver.py
@@ -275,7 +275,7 @@ def _put_ssh_key(self, keyfile_path):
275
return
276
277
self.logger.debug("Key not on target and not writeable, using bind mount...")
278
- self._run_check('mkdir -m 700 /tmp/labgrid-ssh/')
+ self._run_check('mkdir -p -m 700 /tmp/labgrid-ssh/')
279
self._run("cp -a ~/.ssh/* /tmp/labgrid-ssh/")
280
self._write_key(keyline, "/tmp/labgrid-ssh/authorized_keys")
281
self._run_check('chmod 600 /tmp/labgrid-ssh/authorized_keys')
0 commit comments