Hi, I am trying to clone a remote repository:
git.exe clone "ssh://x...@yyy.zzz:22221/some/repo" "C:\delme\repo" Git is working properly on the server. The server runs mina sshd 2.7.0. Logs tell me that all ssh relevant stuff is working properly. If the remote server is linux I get: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Strangely, on my Windows the git clone is working just fine, so the problem should be on the linux end. I checked file permissions and ownership. Access to the repository when accessed via openssh also works fine. I use the following code: server.setCommandFactory( new GitPackCommandFactory() .withGitLocationResolver(resolver) ) With a custom resolver which also seems to work fine (log/debugging). Finally, I found that in 1. git.exe clone "ssh://x...@yyy.zzz:22221//some/repo" "C:\delme\repo" 2. git.exe clone "ssh://x...@yyy.zzz:22221/some/repo" "C:\delme\repo" number 1 is working. In addition I tried to use ~/ in the path which was also not working. Thanks in advance, Daniel Kirschner -----Ursprüngliche Nachricht----- Von: Guillaume Nodet <gno...@apache.org> Gesendet: Montag, 31. Mai 2021 11:22 An: dev <d...@mina.apache.org>; users@mina.apache.org Betreff: [ANNOUNCE] Apache SSHD 2.7.0 released The Apache Mina team is pleased to announce the release of SSHD 2.7.0 version. Apache SSHD is a 100% pure java library to support the SSH protocols on both the client and server side. This library can leverage NIO2, Apache MINA and also Netty - scalable and high performance asynchronous IO libraries. SSHD does not really aim at being a replacement for the SSH client or SSH server from Unix operating systems, but rather provides support for Java based applications requiring SSH support. The major issues addressed in this release are: ** Bug * [SSHD-1111] - wrong command line interpretation * [SSHD-1123] - ChannelAsyncOutputStream breaks downloads of sftp client by not chunking when the remote window is smaller than the packet size * [SSHD-1125] - Provide a boundary on BufferedIoOutputStream writing to avoid memory overflow * [SSHD-1136] - Diffie Hellmann group exchange falls back to insecure DHG1 if agreement on modulo size is not possible * [SSHD-1137] - IOException for unsupported NOFOLLOW_LINKS on AIX when accessing with OpenSSH SFTP client * [SSHD-1146] - Missing Import-Package header in sshd-osgi-2.6.0 * [SSHD-1154] - userauth_pubkey: unsupported public key algorithm: rsa-sha2-512 * [SSHD-1158] - Channel closed by peer: extra SSH_MSG_CHANNEL_EOF sent ** New Feature * [SSHD-1097] - Provide an 'endlessh' tarpit capability ** Improvement * [SSHD-525] - Add support for "posix-ren...@openssh.com" SFTP extension * [SSHD-1083] - The nio2 connector/acceptor implementation should not be tied to the FactoryManager * [SSHD-1105] - Use all possible signatures for a public key type in public key authentication * [SSHD-1109] - Replace log4j with logback as the slf4j logger implementation for tests * [SSHD-1114] - Add client-side detailed authentication progress callbacks * [SSHD-1116] - Provide session context to the various XXXProvider(s) * [SSHD-1132] - Add support for SFTP "filename-charset" extension * [SSHD-1133] - Provide non-UTF8 charset encoding capability to SCP implementation * [SSHD-1141] - Implement server-sig-algs * [SSHD-1145] - EdDSASecurityProviderRegistrar#isSupported() should check more classloaders ** Wish * [SSHD-1147] - SftpClient is not able to download file from proprietory SFTP servers (IBM) with a one time download policy The distributions are available from the Apache Software Foundation distribution mirrors http://mina.apache.org/sshd-project/downloads.html and from maven central. On behalf of the Apache Mina team, Guillaume Nodet