mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-30 01:34:08 +00:00
A GUI client for Windows and Linux, support Xray core and v2fly core and others
Add SSH as a first-class protocol alongside VMess/VLESS/Anytls/Naive: - New EConfigType.SSH (sing-box only; not in XraySupportConfigType). - ProtocolExtraItem gains SshPrivateKey / SshPrivateKeyPath / SshPrivateKeyPassphrase / SshHostKey / SshHostKeyAlgorithms / SshClientVersion. - Outbound4Sbox gains user / private_key / private_key_path / private_key_passphrase / host_key / host_key_algorithms / client_version, mapping 1:1 to sing-box's ssh outbound schema. - SingboxOutboundService emits the ssh outbound and bypasses TLS for SSH nodes; multiplex is not called for SSH (sing-box rejects it). - ConfigHandler.AddSSHServer pins CoreType=sing_box, requires a username, and requires exactly one of password / inline key / key path (inline and path are mutually exclusive). - AddServerViewModel exposes SSH fields and mirrors the same validation rules at save time. - MainWindowViewModel: AddSshServerCmd routed to AddServerAsync(SSH). - WPF + Avalonia: new gridSsh on AddServerWindow with username, password, inline PEM, key path, passphrase, host key(s), host-key algorithms, and client version. Hides transport/TLS/finalmask. - MainWindow menu item 'Add [SSH]' bound on both UIs. - Resources: menuAddSshServer + Tb*Ssh* + FillSshAuth + PleaseFillUsername (resx + Designer). - Tests: SingboxSshOutboundTests covers password-only output, inline PEM line splitting, host_key CSV trimming, and SSH-in-ProxyChain detour wiring. Chaining works through the existing ProxyChain machinery (detour field), since SSH is now a regular sing-box outbound. |
||
|---|---|---|
| .github | ||
| v2rayN | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| LICENSE | ||
| package-debian-loong.sh | ||
| package-debian-riscv.sh | ||
| package-debian.sh | ||
| package-osx.sh | ||
| package-rhel-riscv.sh | ||
| package-rhel.sh | ||
| README.md | ||