MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.84k stars 2.67k forks source link

[Feature] Any possibility for adding auto-2FA for ssh? #1652

Open EXGDT opened 1 week ago

EXGDT commented 1 week ago

Verification Steps

Description

Currently, if I want to connect to an internal server through a jump host and use it as part of the system proxy, I need to manually establish a local SOCKS5 proxy using ssh -D and then add it to mihomo proxy groups. The 2FA process can be automated with an Expect script or a modified version of sshpass, as long as the 2FA secret key is available. Of course, official software like Termius or MobaXterm doesn't allow 2FA automation, but I think Mihomo could easily support it. The ideal configuration file might look like this:

proxies: