- 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
25 lines
732 B
Rust
25 lines
732 B
Rust
// 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: 导出安全配置
|