Skip to content

Commit fd5edd4

Browse files
DominikDominik
authored andcommitted
Remote host mandatory with port
1 parent 3ca6e1f commit fd5edd4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ When publickey authentication is possible, a forwarded agent is needed to login
6868

6969
To start SSH-MITM, all you have to do is run this command in your terminal of choice.
7070

71-
$ ssh-mitm --remote-host 192.168.0.x
71+
$ ssh-mitm --remote-host 192.168.0.x:PORT
7272

7373
Now let's try to connect. SSH-MITM is listening on port 10022.
7474

doc/advanced-usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Publickey authentication in SSH-MITM is enabled by default. All you have to do i
3636
.. code-block:: none
3737
:linenos:
3838
39-
$ ssh-mitm --remote-host 192.168.0.x
39+
$ ssh-mitm --remote-host 192.168.0.x:PORT
4040
4141
The client must be started with agent forwarding enabled.
4242

@@ -206,7 +206,7 @@ To enable agent forwarding, git has to be executed with the ``GIT_SSH_COMMAND``
206206
.. code-block:: bash
207207
208208
# start the ssh server
209-
ssh-mitm --remote-host github.com --scp-interface debug_traffic
209+
ssh-mitm --remote-host github.com:PORT --scp-interface debug_traffic
210210
211211
# invoke git commands
212212
GIT_SSH_COMMAND="ssh -A" git clone ssh://[email protected]:10022/ssh-mitm/ssh-mitm.git

doc/quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ In cases, when no agent was forwarded, SSH-MITM can rediredt the session to a ho
5858
<p>
5959
To start an intercepting mitm-ssh server on Port 10022,
6060
all you have to do is run a single command.<br/>
61-
<code>$ ssh-mitm --remote-host 192.168.0.x</code>
61+
<code>$ ssh-mitm --remote-host 192.168.0.x:PORT</code>
6262
</p>
6363
<p>
6464
Now let's try to connect to the ssh-mitm server.<br/>
@@ -131,7 +131,7 @@ All you have to do is run this command in your terminal of choice.
131131

132132
.. code-block:: bash
133133
134-
$ ssh-mitm --remote-host 192.168.0.x
134+
$ ssh-mitm --remote-host 192.168.0.x:PORT
135135
136136
Now let's try to connect to the ssh-mitm server.
137137
The ssh-mitm server is listening on port 10022.

ssh_proxy_server/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def parser_arguments(cls):
8888
'--remote-host',
8989
dest='remote_host',
9090
type=validate_remote_host,
91-
help='remote host to connect to (default 127.0.0.1:22)'
91+
help='remote host to connect to (format remote_host:remote_port, default 127.0.0.1:22)'
9292
)
9393
plugin_group.add_argument(
9494
'--auth-username',

0 commit comments

Comments
 (0)