-
Stefy Lanza (nextime / spora ) authored
New wsscp application: - WebSocket SCP wrapper similar to wsssh but for SCP instead of SSH - Uses -P option for port detection (SCP standard) instead of -p - Automatically constructs ProxyCommand for WebSocket tunnels - Supports same command line syntax as regular SCP - Includes automatic port detection from -P option - Full integration with wsssht WebSocket tunnel infrastructure Implementation details: - wsscp.h: Header file with configuration structures and function declarations - wsscp.c: Complete implementation with argument parsing and SCP command generation - Updated configure.sh to build wsscp alongside other tools - Added wsscp.1 man page with comprehensive documentation - Tested functionality with debug mode and argument parsing Features: - Automatic wsssht path detection (PATH or same directory) - Smart port detection: explicit --wssshd-port takes precedence over -P option - Support for all wsssht tunnel options (--tunnel, --tunnel-control, --debug) - Compatible with existing wssshc/wsssht infrastructure - Proper error handling and user-friendly help messages Usage examples: wsscp localfile user@myclient:/remote/path wsscp -P 2222 localfile user@myclient.server.com:/remote/path wsscp --debug --tunnel websocket localfile user@myclient:/remote/path
cea666ef