Not working with a windows ssh server

1,086 views
Skip to first unread message

thshd...@gmail.com

unread,
Aug 8, 2013, 3:42:32 AM8/8/13
to sshu...@googlegroups.com
Hello, 
I'm using a windows ssh server using bitvise. http://www.bitvise.com The server has python installed. In the c:\Python27\python directory.

I have a Mac and I'm trying use sshuttle to connect to my ssh server. 

./sshuttle --python /Python27/python --dns -vvr  ad...@mysshServer.com 0/0
Starting sshuttle proxy.
Binding: 12300
Listening on ('127.0.0.1', 12300).
DNS listening on ('127.0.0.1', 12300).
firewall manager ready.
c : connecting to server...c : executing: ['ssh', 'ad...@mysshServer.com', '--', '\'/Python27/python\' -c \'import sys; skip_imports=1; verbosity=2; exec compile(sys.stdin.read(764), "assembler.py", "exec")\'']
ad...@mysshServer.com's password: 
c :  > channel=0 cmd=PING len=7 (fullness=0)
''' is not recognized as an internal or external command,
operable program or batch file.
c : fatal: expected server init string 'SSHUTTLE0001'; got ''

Seems that perhaps the syntax is wrong for windows. Any ideas?

thshd...@gmail.com

unread,
Aug 9, 2013, 7:35:37 PM8/9/13
to sshu...@googlegroups.com, thshd...@gmail.com
If I don't use the python switch I get this message:

c :  > channel=0 cmd=PING len=7 (fullness=0)
Access is denied.
'P' is not recognized as an internal or external command,
operable program or batch file.
c : fatal: server died with error code 1

seems that its having an issue locating python. 

which python gets me this:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python

cke...@gmail.com

unread,
Aug 20, 2013, 2:36:21 AM8/20/13
to sshu...@googlegroups.com, thshd...@gmail.com
I'm having the exact same problem, any updates?
I tried setting the default shell option in bitvise server to mingw's bash.exe, but nothing changed...

8 Ağustos 2013 Perşembe 10:42:32 UTC+3 tarihinde thshd...@gmail.com yazdı:

thshd...@gmail.com

unread,
Aug 20, 2013, 2:42:39 AM8/20/13
to sshu...@googlegroups.com, thshd...@gmail.com, cke...@gmail.com
I started a trial of the tectia ssh server on suse lunix. Sshuttle is working on my Mac osx 10.8.4, with this server. Seems that it does not work on windows. 

jur...@gmail.com

unread,
Jan 14, 2014, 1:49:10 PM1/14/14
to sshu...@googlegroups.com, thshd...@gmail.com
Hi,

Any update on this issue i have same problem on Win 7 already try few version of python but without success

Thanks

thshd...@gmail.com

unread,
Jan 14, 2014, 6:16:05 PM1/14/14
to sshu...@googlegroups.com, thshd...@gmail.com, jur...@gmail.com
I would use a Linux or Unix SSH server. At http://apenwarr.ca/diary/2011-sshuttle.pdf the developer lists what happens on the SSH server so the application can upload and run itself "worm style". Maybe the developer can confirm, but I don't think that this self assembly process will work on Windows due to the differences of stdin on Windows. In addition the client needs iptables or ipfw to change the firewall rules to process the data to the SSH server. If iptables or or ipfw are needed server side it really wont work in windows.
Reply all
Reply to author
Forward
0 new messages