Commit 40ff69c
ci: use ~/.ssh/config for SFTP auth options instead of CLI flags
Passing -o flags directly on the sftp -b - command line doesn't work:
sftp batch mode reads commands from stdin, conflicting with how sshpass
intercepts the password prompt when inline options are present.
Write a ~/.ssh/config stanza for ${SFTP_SERVER} containing:
PubkeyAuthentication no
PreferredAuthentications password
Using grouped echo commands (avoids heredoc/YAML indentation issues).
Also add chmod 600 on the config file as required by SSH.
Co-authored-by: igaw <[email protected]>1 parent 0a00104 commit 40ff69c
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments