summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/12-09-2011/sshtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/12-09-2011/sshtest.py')
-rw-r--r--For Weekly Test/12-09-2011/sshtest.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/For Weekly Test/12-09-2011/sshtest.py b/For Weekly Test/12-09-2011/sshtest.py
new file mode 100644
index 0000000..f18139e
--- /dev/null
+++ b/For Weekly Test/12-09-2011/sshtest.py
@@ -0,0 +1,15 @@
+import sys
+import os
+import subprocess
+import SSHTunnelBox1Class
+import SSHTunnelBox2Class
+import ClientClass
+from time import sleep
+
+portDest = 46000#should be 9
+box2 = SSHTunnelBox2Class.SSHTunneling(portDest, 50008, '132.230.4.67', 'lsfks', 'r')#ip??
+print box2.startTunneling()
+#sleep(2)
+receiver = ClientClass.Connection('localhost', portDest)
+print receiver.connect()
+box2.killTunneling()