ggrandes/sftpserver
Fork: 58 Star: 75 (更新于 2024-10-30 21:30:11)
license: Apache-2.0
Language: Java .
SFTP Server (SSH File Transfer Protocol) in Java, based on Apache MINA SSHD
最后发布版本: v1.5.0 ( 2024-08-21 02:19:23)
sftpserver
SFTP Server (SSH File Transfer Protocol) based on Apache MINA SSHD
. Open Source Java project under Apache License v2.0
Current Stable Version is 1.5.0
Versions
sftpserver | Java |
---|---|
1.0.x | 1.6+ |
1.1.x | 1.6+ |
1.2.x | 1.7+ |
1.3.x | 1.8+ |
1.4.x | 1.8+ |
1.5.x | 1.8+ |
Config:
${sftp.home}/conf/[id]/sftpd.properties
(all in one file)
#
## Global Options
#
# Listen on localhost and localnet
#sftpserver.global.host=127.0.0.1,192.168.1.1
# Listen on TCP port 22222
sftpserver.global.port=22222
# Enable compression (requires jzlib) (default: false)
sftpserver.global.compress=true
# Enable dummy shell (default: false)
sftpserver.global.dummyshell=true
# Enable log request (default: false)
sftpserver.global.logrequest=true
#
## Configure user "test"
#
# Password for user (unencrypted-plain-text)
#sftpserver.user.test.userpassword=changeit
# Password for user (encrypted)
sftpserver.user.test.userpassword=$1$156RlTZJ$76bzjtXvDfgvouurtgEI10
# PublicKeys for user (OpenSSH format)
sftpserver.user.test.userkey.1=ssh-rsa AAAAB3NzaC1yc2EAAAADA...E7uQ==
sftpserver.user.test.userkey.2=ssh-ed25519 AAAAC3NzaC1...QfX
sftpserver.user.test.userkey.3=ecdsa-sha2-nistp256 AAAAE2VjZ...Z99xM=
# Set user home directory (chrooted)
sftpserver.user.test.homedirectory=./home/test/
# Enable user (default: false)
sftpserver.user.test.enableflag=true
# Enable write (default: false)
sftpserver.user.test.writepermission=true
#
${sftp.home}/conf/[id]/sftpd.properties
+ ${sftp.home}/conf/[id]/htpasswd
#
## Global Options
#
# Listen on TCP port 22222
sftpserver.global.port=22222
# ...
# ... same params as "all in one file" ...
# ...
#
## Configure htpasswd
#
# Enable htpasswd (default: false)
sftpserver.htpasswd.enableflag=true
# Set home directory for all users (chrooted)
sftpserver.htpasswd.homedirectory=./home/test/
# Enable write (default: false)
sftpserver.htpasswd.writepermission=true
#
Running (Linux)
./bin/sftpd.sh <run|start|stop|restart|status> [id]
Upstart Script (Linux)
./bin/sftpd.conf (you can copy to /etc/init/)
Systemd Service (Linux)
./bin/sftpd.service (you can copy to /etc/systemd/system/)
Generate Encrypted Password (Linux)
./bin/sftpd.sh <pwd>
DONEs
- Use Java SecurityManager/Policy File
- Non operating system accounts
- Homes are chrooted
- ReadOnly accounts
- Encrypted Passwords (SHA2/MD5/APR1)
- PublicKey Authenticator (OpenSSH keys RSA/EcDSA/Ed25519)
- Support htpasswd file (APR1)
MISC
Current hardcoded values:
- Default
${sftp.home}
is/opt/sftpd
- Hostkeys are writed to:
hostkey.pem
orhostkey.ser
in${sftp.home}/keys/
directory - SecurityManager/Policy File is in
conf/${ID}/sftpd.policy
(custom) orlib/sftpd.policy
(generic) - Htpasswd File is in
conf/${ID}/htpasswd
(custom) orconf/htpasswd
(generic) - Default KexAlgorithms:
curve25519-sha256, curve25519-sha256@libssh.org, diffie-hellman-group14-sha256, diffie-hellman-group16-sha512, diffie-hellman-group-exchange-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha1
- Default Ciphers:
chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
- Default MACs:
hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
最近版本更新:(数据更新于 2024-09-04 23:20:27)
2024-08-21 02:19:23 v1.5.0
2024-07-29 02:25:37 v1.4.2
2024-07-25 23:55:56 v1.4.1
2022-03-10 06:18:57 v1.4.0
2020-06-29 00:57:58 v1.3.5
2020-06-28 01:43:08 v1.3.4
2020-06-27 00:45:47 v1.3.3
2020-06-26 17:00:02 v1.3.2
主题(topics):
java, mina, sftp, sshd
ggrandes/sftpserver同语言 Java最近更新仓库
2024-11-05 19:32:42 xiaojieonly/Ehviewer_CN_SXJ
2024-11-05 04:13:47 Stirling-Tools/Stirling-PDF
2024-11-04 02:03:13 exzhawk/EhViewer
2024-11-03 00:43:09 PBH-BTN/PeerBanHelper
2024-10-31 18:52:00 CodePhiliaX/Chat2DB
2024-10-31 11:19:43 mybatis-flex/mybatis-flex