# remote: Use SFTP over SCP for uploading files and directories \(\#40510\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f2b966b1392d7820441687eacf696c959602c534)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f2b966b1392d7820441687eacf696c959602c534

Requested commit: f2b966b1392d7820441687eacf696c959602c534

Commit: f2b966b1392d7820441687eacf696c959602c534

Tree: 0e22e9f575ad232e255ded714276bd07d2222067

Author: Smit Barmase

Committer: GitHub

## Message

```
remote: Use SFTP over SCP for uploading files and directories (#40510)

Closes #37322

Uses SFTP if available, otherwise falls back to SCP for uploading files
and directories to remote. This fixes an issue on older macOS versions
where outdated SCP can throw an ambiguous target error.

Release Notes:

- Fixed an issue where extensions wouldn’t work when SSHing into a
remote from older macOS versions.
```

## Parents

- [4507110981cb0b261945cc904d4d41cf82adee2b](https://git.cafe/gitcafe/zed/commit/4507110981cb0b261945cc904d4d41cf82adee2b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f2b966b1392d7820441687eacf696c959602c534?format=markdown)
