Skip to content

Commit 9820405

Browse files
committed
Check will check that server is reachable through public keys
1 parent ab271c5 commit 9820405

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dmu/fsystem/fcopy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def _check_remote(self, server : str) -> None:
6969
result = subprocess.run(
7070
['ssh', '-o', f'ConnectTimeout={self._timeout}',
7171
'-o', 'BatchMode=yes',
72+
'-o', 'PubkeyAuthentication=yes',
73+
'-o', 'PasswordAuthentication=no',
7274
'-o', 'StrictHostKeyChecking=no', server,
7375
'/bin/true'],
7476
capture_output= True,

0 commit comments

Comments
 (0)