add support for SFTP subsystem mode

Fixes #204
This commit is contained in:
Nicola Murino
2020-10-29 19:23:33 +01:00
parent e54828a7b8
commit ac3bae00fc
15 changed files with 368 additions and 14 deletions

View File

@@ -8,7 +8,6 @@ import (
"time"
"github.com/pkg/sftp"
"golang.org/x/crypto/ssh"
"github.com/drakkan/sftpgo/common"
"github.com/drakkan/sftpgo/dataprovider"
@@ -23,7 +22,7 @@ type Connection struct {
ClientVersion string
// Remote address for this connection
RemoteAddr net.Addr
channel ssh.Channel
channel io.ReadWriteCloser
command string
}