sshmitm.tutorial.tutorials.pubkey_agent_forwarding package

Tutorial: Public Key Auth & Agent Forwarding Interception.

class sshmitm.tutorial.tutorials.pubkey_agent_forwarding.PubkeyAgentForwardingTutorial

Bases: Tutorial

category: ClassVar[str] = 'Authentication'
description: ClassVar[str] = 'Learn what SSH-MITM can see when public key auth and agent forwarding are used.'
id: ClassVar[str] = '02-pubkey-agent-forwarding'
server = MockServerConfig(users=[UserConfig(username=None, auth=PublicKeyAuth(key=None))], subsystems=['sftp'], allow_shell=True, allow_exec=True, mock_port=2200, sshmitm_port=10022)
steps: list[Step] = [Step(id='intro', title='What you will learn', content='', condition=<sshmitm.tutorial._conditions.TRUE object>, victim_action=None, command=None, copyable=[], hint_waiting='', hint_done='Introduction read. ✓'), Step(id='start-sshmitm', title='Start SSH-MITM', content='', condition=<sshmitm.tutorial._conditions.PortOpen object>, victim_action=None, command='ssh-mitm server --remote-host 127.0.0.1 --remote-port {mock_port} --listen-port {sshmitm_port}', copyable=[], hint_waiting='Waiting for SSH-MITM to start on port {sshmitm_port}…', hint_done='SSH-MITM is running on port {sshmitm_port}. ✓'), Step(id='intercept', title='Enter the intercepted key fingerprint', content='', condition=<sshmitm.tutorial._conditions.UserInput object>, victim_action=<sshmitm.tutorial._client_actions.SSHPublicKeyAction object>, command=None, copyable=[], hint_waiting='Look at the SSH-MITM terminal and enter the key fingerprint above.', hint_done='Correct! Tutorial complete. ✓')]
title: ClassVar[str] = 'Public Key Auth & Agent Forwarding'