[
https://issues.apache.org/jira/browse/WAGON-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883291#comment-16883291
]
Steinar Bang commented on WAGON-563:
------------------------------------
[~michael-o] My mistake. Please resolve this as not a bug. Sorry about the
noise. I had lost config essential to wagon-ssh during the debian version
upgrade.
More info on the problem:
When I went to /etc/ssh/sshd_config to enable debugging I noticed that it had
changes applied to it from the system upgrade
All of my modified configuration files are version controlled. I usually let
apt-get install the maintainer's version and then manually apply the changes.
And the /etc/ssh/sshd_config had lost the following config that was essential
to get wagon-ssh working:
{noformat}
--- sshd_config 2019/07/11 19:35:06 1.15
+++ sshd_config 2019/07/11 19:37:33 1.16
@@ -111,7 +111,7 @@
AcceptEnv LANG LC_*
# override default of no subsystems
-Subsystem sftp /usr/lib/openssh/sftp-server
+Subsystem sftp internal-sftp
# Example of overriding settings on a per-user basis
#Match User anoncvs
@@ -119,3 +119,9 @@
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
+
+Match User maven
+ ChrootDirectory /var/www-maven
+ X11Forwarding no
+ AllowTcpForwarding no
+ ForceCommand internal-sftp -u 0022
{noformat}
> wagon-ssh fails when connecting to sftp on debian 10
> ----------------------------------------------------
>
> Key: WAGON-563
> URL: https://issues.apache.org/jira/browse/WAGON-563
> Project: Maven Wagon
> Issue Type: Bug
> Affects Versions: 3.2.0, 3.3.3
> Reporter: Steinar Bang
> Priority: Major
>
> I've upgraded the maven repository server from debian 9.9 "stretch" to debian
> 10 "buster" and after this, sftp maven deploy stopped working.
> "mvn deploy" fails with this error message:
> {noformat}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
> project parent: Failed to deploy artifacts: Could not transfer artifact
> no.priv.bang.ukelonn:parent:pom:1.0.0-20190710.210603-1 from/to
> ssh-maven-travis (sftp://maven.bang.priv.no/repository): Error occurred while
> deploying
> 'no/priv/bang/ukelonn/parent/1.0.0-SNAPSHOT/parent-1.0.0-20190710.210603-1.pom'
> to remote repository: sftp://maven.bang.priv.no/repository: Permission
> denied -> [Help 1]
> {noformat}
> Connecting to sftp using the same username and credentials and I can upload
> and delete files in the repository:
> {noformat}
> sb@lorenzo:~/workspaces/ws03/ukelonn$ sftp -i ~/.ssh/id_rsa_maven
> [email protected]
> Connected to maven.bang.priv.no.
> sftp>
> {noformat}
> Versions of everything:
> * Server side
> ** debian 10 "buster", amd64
> ** openssh-sftp-server 1:7.9p1-10
> * Client side
> ** debian 9.9 "stretch"
> ** openjdk-8 1.8.0_212
> ** maven 3.6
> ** wagon-ssh 3.2.0 and 3.3.3 (both versions failed)
> The project where deploy fails: https://github.com/steinarb/ukelonn
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)