mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/build: accept any host key for SFTP
This is OK because transport security isn't important for Launchpad uploads. We're using SFTP as a replacement for unencrypted FTP and files we upload are signed using GPG.
This commit is contained in:
parent
50b872bf05
commit
690b5e3062
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ func ExpandPackagesNoVendor(patterns []string) []string {
|
||||||
// The destination host may be specified either as [user@]host[: or as a URI in
|
// The destination host may be specified either as [user@]host[: or as a URI in
|
||||||
// the form sftp://[user@]host[:port].
|
// the form sftp://[user@]host[:port].
|
||||||
func UploadSFTP(identityFile, host, dir string, files []string) error {
|
func UploadSFTP(identityFile, host, dir string, files []string) error {
|
||||||
sftp := exec.Command("sftp")
|
sftp := exec.Command("sftp", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null")
|
||||||
sftp.Stdout = nil
|
sftp.Stdout = nil
|
||||||
sftp.Stderr = os.Stderr
|
sftp.Stderr = os.Stderr
|
||||||
if identityFile != "" {
|
if identityFile != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue