Skip to content

[WAGON-633] ssh-external issues with "ForceCommand internal-sftp" #779

@jira-importer

Description

@jira-importer

Urh Srečnik opened WAGON-633 and commented

Current implementation relies on "scp" and "ssh" external commands. I propose to only use "sftp" external command because if sshd config contains "ForceCommand internal-sftp" then:

  1. "ssh" command cannot be used

  2. "scp" command requires version >= 9.0 (this issue is also described here: https://serverfault.com/questions/420457/openssh-anything-like-internal-sftp-but-for-scp )

 

I have implemented such wagon provider (sftp only) and published it here (this is basically a proof of concept which solves my problem, but would need a bit more work to support Windows environments etc):
https://github.com/usrecnik/maven-wagon-ssh-sftp

 

Should i provide a pull request to current ssh-external project? I'm not sure if this should be considered as an improvement to existing ssh-external or should it be treated as another implementation of a wagon provider.

I'm happy to help and I would like official wagon to support "ForceCommand internal-sftp" configuration - how should we proceed?


Affects: 3.5.3

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions