summaryrefslogtreecommitdiffhomepage
path: root/demos
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2008-02-19 21:58:49 -0800
committerRobey Pointer <robey@lag.net>2008-02-19 21:58:49 -0800
commit73c8dadb624b0cd1c480507d5a3068b6074dd9fe (patch)
treece0e5f383db849403a30acd05b5d11ce767af6a6 /demos
parente963435e92231787e1ed7f75781b19639f6a5879 (diff)
[project @ robey@lag.net-20080220055849-xmjvp8m0lqyz4cf1]
change -l to -p for consistency
Diffstat (limited to 'demos')
-rw-r--r--demos/forward.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/demos/forward.py b/demos/forward.py
index c398e6ef..33c98ab8 100644
--- a/demos/forward.py
+++ b/demos/forward.py
@@ -26,13 +26,12 @@ forwarding (the openssh -L option) from a local port through a tunneled
connection to a destination reachable from the SSH server machine.
"""
-import sys
+import getpass
import os
import socket
import select
import SocketServer
-import getpass
-import base64
+import sys
from optparse import OptionParser
import paramiko
@@ -102,7 +101,7 @@ def verbose(s):
HELP = """\
Set up a forward tunnel across an SSH server, using paramiko. A local port
-(given with -l) is forwarded across an SSH session to an address:port from
+(given with -p) is forwarded across an SSH session to an address:port from
the SSH server. This is similar to the openssh -L option.
"""
@@ -121,7 +120,7 @@ def parse_options():
version='%prog 1.0', description=HELP)
parser.add_option('-q', '--quiet', action='store_false', dest='verbose', default=True,
help='squelch all informational output')
- parser.add_option('-l', '--local-port', action='store', type='int', dest='port',
+ parser.add_option('-p', '--local-port', action='store', type='int', dest='port',
default=DEFAULT_PORT,
help='local port to forward (default: %d)' % DEFAULT_PORT)
parser.add_option('-u', '--user', action='store', type='string', dest='user',