# \[ANN\] SFTPClient.jl Package for Working with SFTP Files

**URL:** https://discourse.julialang.org/t/ann-sftpclient-jl-package-for-working-with-sftp-files/103462
**Category:** Package Announcements
**Tags:** package, announcement
**Created:** [September 2, 2023, 7:54am UTC](https://discourse.julialang.org/t/ann-sftpclient-jl-package-for-working-with-sftp-files/103462 "2023-09-02T07:54:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stene/32/26044_2.png) [@stene](https://discourse.julialang.org/u/stene)
#### Post date: [September 2, 2023, 7:54am UTC](https://discourse.julialang.org/t/ann-sftpclient-jl-package-for-working-with-sftp-files/103462/1 "2023-09-02T07:54:56Z")

</div>

[SFTPClient](https://github.com/stensmo/SFTPClient.jl) simplifies working with SFTP Files in Julia. Built on top of Downloads.jl, and provides readdir, download, upload, cd, rm, rmdir, mkdir, mv.

_ **Note: You must first use your local sftp client to set up certificates** _  
This is done in Windows by using Command Line (cmd.exe) or Windows PowerShell. in Linux use your favorite shell.  
Execute “sftp -o HostKeyAlgorithms=ssh-rsa [myuser@siteIwantToConnectTo.com](mailto:myuser@siteIwantToConnectTo.com)” and acccept any certificates. After this you should be able to connect via the Julia SFTP Client. See GitHub for more debugging tips.

Examples:

```julia

    using SFTPClient
    sftp = SFTP("sftp://test.rebex.net/pub/example/", "demo", "password")
    files=readdir(sftp)
    # On Windows, replace this with an appropriate path
    downloadDir="/tmp/"
    SFTPClient.download.(sftp, files, downloadDir=downloadDir)

```
