SSH-MITM Version
SSH-MITM 5.0.1
Platform detail
Linux ROG-WIN 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Arguments used to start SSH-MITM
ssh-mitm server --remote-host 192.168.69.2
SSH client used
Out of scope
SSH server used
Out of scope
What steps will reproduce the bug?
- Install the software:
python3 -m pip install "ssh-mitm[production]"
- Add .local/bin to PATH
- run
ssh-mitm server --remote-host 192.168.69.2
I got:
Traceback (most recent call last):
File "/home/jubeor/.local/bin/ssh-mitm", line 8, in <module>
sys.exit(main())
File "/home/jubeor/.local/lib/python3.10/site-packages/sshmitm/cli.py", line 96, in main
parser.load_subcommands()
File "/home/jubeor/.local/lib/python3.10/site-packages/sshmitm/moduleparser/parser.py", line 102, in load_subcommands
subcommand_cls = cast(Type[SubCommand], entry_point.load())
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/jubeor/.local/lib/python3.10/site-packages/sshmitm/server/__init__.py", line 21, in <module>
from sshmitm.forwarders.scp import SCPBaseForwarder, SCPForwarder
File "/home/jubeor/.local/lib/python3.10/site-packages/sshmitm/forwarders/scp.py", line 10, in <module>
from sshmitm.apps.mosh import handle_mosh
File "/home/jubeor/.local/lib/python3.10/site-packages/sshmitm/apps/mosh.py", line 8, in <module>
from cryptography.hazmat.primitives.ciphers.aead import AESOCB3
ImportError: cannot import name 'AESOCB3' from 'cryptography.hazmat.primitives.ciphers.aead' (/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/aead.py)
What should have happened?
The program starts the server session.
──────────────────────────────────────────────────────────────────────── SSH-MITM - ssh audits made simple ────────────────────────────────────────────────────────────────────────
Documentation: https://docs.ssh-mitm.at
Issues: https://github.com/ssh-mitm/ssh-mitm/issues
────────────────────────────────────────────────────────────────────────────────── Configuration ──────────────────────────────────────────────────────────────────────────────────
🔑 SSH-Host-Keys:
generated temporary RSAKey key with 2048 bit length
MD5:eb:41:99:63:b6:37:a2:2b:25:c7:22:8a:bc:e3:f4:34
SHA256:G9Ngbb0hXtBuiwDaAqhBGPrPeNgBo6W3HL3hPcHvitg
SHA512:xUZHc1ui1hPUoPiGqzbhc6z5ymBRb00cTOELhnlJUeispkv4SbUq/1LC56sJuaDKFpStw/apD9QXPgn+ifimIg
...................................................................................................................................................................................
💻 listen interfaces :: on port 10022
───────────────────────────────────────────────────────────────────────────── waiting for connections ─────────────────────────────────────────────────────────────────────────────
etc
Additional information
I got it fixed by installing the packages suggested here:
pip install pyopenssl cryptography --upgrade
SSH-MITM Version
SSH-MITM 5.0.1
Platform detail
Linux ROG-WIN 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Arguments used to start SSH-MITM
ssh-mitm server --remote-host 192.168.69.2
SSH client used
Out of scope
SSH server used
Out of scope
What steps will reproduce the bug?
python3 -m pip install "ssh-mitm[production]"ssh-mitm server --remote-host 192.168.69.2I got:
What should have happened?
The program starts the server session.
──────────────────────────────────────────────────────────────────────── SSH-MITM - ssh audits made simple ──────────────────────────────────────────────────────────────────────── Documentation: https://docs.ssh-mitm.at Issues: https://github.com/ssh-mitm/ssh-mitm/issues ────────────────────────────────────────────────────────────────────────────────── Configuration ────────────────────────────────────────────────────────────────────────────────── 🔑 SSH-Host-Keys: generated temporary RSAKey key with 2048 bit length MD5:eb:41:99:63:b6:37:a2:2b:25:c7:22:8a:bc:e3:f4:34 SHA256:G9Ngbb0hXtBuiwDaAqhBGPrPeNgBo6W3HL3hPcHvitg SHA512:xUZHc1ui1hPUoPiGqzbhc6z5ymBRb00cTOELhnlJUeispkv4SbUq/1LC56sJuaDKFpStw/apD9QXPgn+ifimIg ................................................................................................................................................................................... 💻 listen interfaces :: on port 10022 ───────────────────────────────────────────────────────────────────────────── waiting for connections ─────────────────────────────────────────────────────────────────────────────etc
Additional information
I got it fixed by installing the packages suggested here: