為了評估centos 8支援多少個ssh隧道,我在windows上編寫了一個應用程序,透過循環啟動到centos 8的ssh反向隧道
var session = ssh("centos", "user1", "password1");
for (int i = 60001; i <= 61000; i++) {
session.start_remote_tunnel(i, "127.0.0.1", 50000);
}
打開 505 隧道後,循環拋出異常(遠端隧道啟動失敗)。
sshd 日誌中沒有錯誤;使用PAM=是; selinux 處於寬容模式。