Skip to content

Commit

Permalink
Merge pull request #769 from kiwix/speedup-sftp-via-better-cipher
Browse files Browse the repository at this point in the history
Better comment about scp vs. sftp
  • Loading branch information
kelson42 authored Oct 18, 2024
2 parents ecd8f98 + d03837b commit 022f657
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ def upload(file_to_upload, host, dest_path):
else:
port = "22"

# sending SFTP mkdir command to the sftp interactive mode and not batch (-b) mode
# Using SFTP to create the directory hierarchy because we can not
# use SSH (no shell for this user); and then scp to upload the file.
#
# Sending SFTP mkdir command to the SFTP interactive mode and not batch (-b) mode
# as the latter would exit on any mkdir error while it is most likely
# the first parts of the destination is already present and thus can't be created
sftp_commands = "\n".join(
Expand All @@ -321,6 +324,8 @@ def upload(file_to_upload, host, dest_path):
)
command = [
"sftp",
"-c",
"aes128-ctr",
"-i",
_environ.get("SSH_KEY"),
"-P",
Expand Down

0 comments on commit 022f657

Please sign in to comment.