Skip to content

Have SFTP PSProvider #9505

Closed
Closed

Description

@SteveL-MSFT

Summary of the new feature/enhancement

https://github.com/libfuse/sshfs enables mounting a SFTP endpoint as a local filesystem. Seems like we should be able to use this concept with a PSProvider thus enabling something like:

cd SFTP:
# no creds passed as using pubkey auth
SFTP:> Connect-SftpServer -HostName foo
cd foo
SFTP:/foo>

Proposed technical implementation details (optional)

Since we want this to be cross platform, we shouldn't use sshfs linked above. Instead, we should be able to just use sftp.exe directly with some check that it is available. This will work on Windows with OpenSSH installed.

Activity

  1. strawgate commented on May 1, 2019

    @strawgate
    Contributor

    This would be great if it also supported insecure ftp

  2. fMichaleczek commented on May 1, 2019

    @fMichaleczek
    Contributor

    Bill Easton (@strawgate) This enhancement is about FTP over SSH (SFTP) to improve remote administration. In my opinion, FTP and FTPS are out of scope and need a different library (like this one : FluentFTP )

  3. added
    WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.
    on May 1, 2019
  4. iSazonov commented on May 1, 2019

    @iSazonov
    Collaborator

    FTP is very old, insecure protocol with very poor capabilities. I see use cases for compatibilites with old systems which can work only with FTP but I think this is the case when it should be separated from core.
    For reference. We should work transparently with any transport (WSMan, SSH and etc). Also we discussed previously that we need to implement provider-to-provider communications (ex.: copy-item).

  5. SteveL-MSFT commented on May 1, 2019

    @SteveL-MSFT
    MemberAuthor

    Regular FTP should be covered by PowerShell/PowerShell-RFC#124

  6. SteveL-MSFT commented on May 2, 2019

    @SteveL-MSFT
    MemberAuthor

    With such a provider, you don't even have to cd into the psdrive, you should be able to do this:

    copy-item sftp:/foo/path/file ~/Downloads/
  7. ThomasNieto commented on Sep 14, 2020

    @ThomasNieto
    Contributor

    If this gets implemented #6586 would need to be fixed to enable cross-provider support for the example to work.

  8. chrgraefe commented on Apr 30, 2021

    @chrgraefe

    Steve Lee (@SteveL-MSFT): Are the any ideas to put some effort in this implementation?
    I don't understand your proposed technical idea. Should this work as a wrapper around the ssh and sftp commands?

  9. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreWG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions