![바쁜 프로덕션 SFTP 서버 구성](https://linux55.com/image/10709/%EB%B0%94%EC%81%9C%20%ED%94%84%EB%A1%9C%EB%8D%95%EC%85%98%20SFTP%20%EC%84%9C%EB%B2%84%20%EA%B5%AC%EC%84%B1.png)
많은 수의 클라이언트가 연결하여 작은 파일(500KB~2MB)을 업로드 및 다운로드하는 SFTP 서버가 있습니다. 200개의 클라이언트가 있지만 한 번에 5~30개의 클라이언트만 연결됩니다. 각 클라이언트는 한 번에 5~100개의 파일을 다운로드/업로드할 수 있습니다.
내 클라이언트 중 일부는 대용량 파일을 업로드하는 동안 시간 초과/문제가 발생합니다. 내 의도는 클라이언트 연결 속도를 높이고 많은 수의 병렬 연결을 허용하는 것입니다.서버 로드는 내 관심사가 아닙니다.내 서버에 적합한 고성능 구성을 제안해 주세요.
내 SSHD 설정은 다음과 같습니다
# sshd -T
port 22
protocol 2
addressfamily any
listenaddress 0.0.0.0:22
listenaddress [::]:22
usepam 1
serverkeybits 768
logingracetime 120
keyregenerationinterval 3600
x11displayoffset 10
maxauthtries 6
maxsessions 10
clientaliveinterval 0
clientalivecountmax 3
permitrootlogin yes
ignorerhosts yes
ignoreuserknownhosts no
rhostsrsaauthentication no
hostbasedauthentication no
hostbasedusesnamefrompacketonly no
rsaauthentication yes
pubkeyauthentication yes
kerberosauthentication no
kerberosorlocalpasswd yes
kerberosticketcleanup yes
gssapiauthentication no
gssapikeyexchange no
gssapicleanupcredentials yes
gssapistrictacceptorcheck yes
gssapistorecredentialsonrekey no
passwordauthentication yes
kbdinteractiveauthentication no
challengeresponseauthentication no
printmotd no
printlastlog yes
x11forwarding yes
x11uselocalhost yes
strictmodes yes
tcpkeepalive yes
permitblacklistedkeys no
permitemptypasswords no
permituserenvironment no
uselogin no
compression delayed
gatewayports no
usedns yes
allowtcpforwarding yes
useprivilegeseparation yes
pidfile /var/run/sshd.pid
xauthlocation /usr/bin/xauth
loglevel VERBOSE
syslogfacility AUTH
authorizedkeysfile .ssh/authorized_keys .ssh/authorized_keys2
hostkey /etc/ssh/ssh_host_rsa_key
hostkey /etc/ssh/ssh_host_dsa_key
hostkey /etc/ssh/ssh_host_ecdsa_key
acceptenv LANG
acceptenv LC_*
subsystem sftp /usr/lib/openssh/sftp-server -l VERBOSE -f LOCAL5
maxstartups 10:100:10
permittunnel no
ipqos lowdelay throughput
permitopen any
답변1
maxstartups 10:100:10
문제입니다. 10명의 클라이언트가 동시에 인증하면 기본적으로 새 연결이 끊어지기 시작합니다. 10명 이상의 사용자에게 동시에 서비스를 제공하는 경우 첫 번째 값을 늘려야 합니다.
또한 다음에서 HPN-SSH 설치를 고려할 수도 있습니다.
https://sourceforge.net/p/hpnssh/wiki/Home/
이는 네트워크 가속을 사용하더라도 더 나은 성능을 발휘할 수 있습니다(단, 디버그하기 어려운 버그가 발생할 수 있음).