summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/tricode/sshtest.py
diff options
context:
space:
mode:
authorRefik Hadzialic2011-11-09 18:42:20 +0100
committerRefik Hadzialic2011-11-09 18:42:20 +0100
commitc9c5ce360606570ae9eb01cae68234ac962b7989 (patch)
treeff5d5f9e237223d28a42fc7b8a0cf07ebdea4249 /notFinishedCode/tricode/sshtest.py
parentdelete unnecessary files (diff)
downloadgsm-selftest-c9c5ce360606570ae9eb01cae68234ac962b7989.tar.gz
gsm-selftest-c9c5ce360606570ae9eb01cae68234ac962b7989.tar.xz
gsm-selftest-c9c5ce360606570ae9eb01cae68234ac962b7989.zip
Tiny changes
Diffstat (limited to 'notFinishedCode/tricode/sshtest.py')
-rwxr-xr-xnotFinishedCode/tricode/sshtest.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/notFinishedCode/tricode/sshtest.py b/notFinishedCode/tricode/sshtest.py
new file mode 100755
index 0000000..f18139e
--- /dev/null
+++ b/notFinishedCode/tricode/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()