Files
markbase/markbase-core/src/ssh_server/mod.rs
Warren 8ab2641773
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
Implement SSH Phase 13.4: Port forward listener thread
- Create port_forward_listener.rs module (246 lines)
- Define PortForwardListener structure
- Implement ListenerRequest/ListenerResponse for thread communication
- Implement ListenerManager for managing multiple listeners
- Create start_listener_thread() for independent listener thread
- Implement GatewayPorts binding address logic
- Add thread synchronization (Arc<Mutex<bool>>)
- Support NewConnection and StopListener requests
- All compilation tests passed successfully

Phase 13.1-13.4 completed: Security + Global request + Channel + Listener thread
2026-06-15 19:04:53 +08:00

25 lines
732 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// SSH服务器模块手动实现SSH协议
// 参考OpenSSH源码实现完整的SSH/SFTP/SCP/rsync协议
pub mod server;
pub mod packet;
pub mod version;
pub mod crypto;
pub mod kex;
pub mod kex_exchange;
pub mod kex_complete;
pub mod cipher;
pub mod auth;
pub mod channel;
pub mod sftp_handler;
pub mod scp_handler;
pub mod rsync_handler;
pub mod port_forward; // Phase 13: 端口转发模块
pub mod ssh_security_config; // Phase 13.1: 企业级安全配置
pub mod port_forward_listener; // Phase 13.4: 监听线程模块
pub use server::SshServer;
pub use packet::{SshPacket, PacketType};
pub use version::VersionExchange;
pub use ssh_security_config::SshSecurityConfig; // Phase 13.1: 导出安全配置