This is an automated email from the ASF dual-hosted git repository.
lgoldstein pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push:
new 8c44dc6 Updated some documentation markdown files
8c44dc6 is described below
commit 8c44dc6b7c66bccf4d396d50376e843b294c63ea
Author: Lyor Goldstein <[email protected]>
AuthorDate: Mon Jun 8 19:46:09 2020 +0300
Updated some documentation markdown files
---
CHANGES.md | 5 +++++
README.md | 2 +-
docs/commands.md | 7 +++----
docs/scp.md | 2 +-
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/CHANGES.md b/CHANGES.md
index 001985f..1d14d9f 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -23,6 +23,9 @@ the `SftpFileSystemAccessor` in order to allow easier hooking
into the SFTP subs
* `SftpVersionSelector` is now consulted when client sends initial command (as
well
as when session is re-negotiated)
+* `ScpCommandFactory` is also a `ShellFactory` that can be used to provide a
minimalistic
+shell that is good enough for *WinSCP*.
+
## Minor code helpers
* Handling of debug/ignore/unimplemented messages has been split into
`handleXXX` and `doInvokeXXXMsgHandler` methods
@@ -58,3 +61,5 @@ as much of the available functionality as possible.
* [SSHD-998](https://issues.apache.org/jira/browse/SSHD-998) - Take into
account SFTP version preference when establishing initial channel
* [SSHD-989](https://issues.apache.org/jira/browse/SSHD-989) - Read correctly
ECDSA key pair from PKCS8 encoded data
+
+* [SSHD-1009](https://issues.apache.org/jira/browse/SSHD-1009) - Provide a
minimalistic shell for supporting *WinSCP* SCP mode.
diff --git a/README.md b/README.md
index e3dc9ed..5dbf63a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
# Apache MINA SSHD
Apache SSHD is a 100% pure java library to support the SSH protocols on both
the client and server side. This library can
diff --git a/docs/commands.md b/docs/commands.md
index 14dc478..2d0f6f9 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -14,10 +14,9 @@ file system where the logged-in user can access only the
files under the specifi
SshServer sshd = SshServer.setupDefaultServer();
sshd.setFileSystemFactory(new VirtualFileSystemFactory() {
@Override
- protected Path computeRootDir(Session session) throws IOException {
- String username = session.getUsername(); // or any other session
related parameter
- Path path = resolveUserHome(username);
- return path;
+ public Path getUserHomeDir(SessionContext session) throws IOException {
+ ...use whatever information ...
+ return somePath;
}
});
diff --git a/docs/scp.md b/docs/scp.md
index 7670438..c9bff2a 100644
--- a/docs/scp.md
+++ b/docs/scp.md
@@ -136,7 +136,7 @@ non-SCP command is deemed as having failed (same as if it
were rejected by the d
```java
ScpCommandFactory factory = new ScpCommandFactory.Builder()
- .withwithDelegate(new MyCommandDelegate())
+ .withDelegate(new MyCommandDelegate())
.build();
SshServer sshd = ...create an instance...