httptunnel is not working in general in Ubuntu (but in Debian)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
httptunnel (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
httptunnel is not working in general in Ubuntu. I did the following from a Ubuntu (Gnome) 14.04 Live CD and from a Debian (Gnome) 7.8.0 Live CD:
apt-get update
apt-get install httptunnel openssh-client openssh-server
service ssh restart
hts -F localhost:22 443
htc -F 10022 localhost:443
ssh -p 10022 ubuntu-
-------
It is working in Debian, but not in Ubuntu. ssh always return this error:
ssh_exchange_
It also happens if I try this patched ppa version:
https:/
It also happens if I compile the original source code. I did this for version 3.0.5 and 3.3 and enabled the debug mode:
-------
hts.log
20150412 184651 hts (httptunnel) 3.3 started with arguments:
20150412 184651 me = hts
20150412 184651 device = (null)
20150412 184651 port = 443
20150412 184651 forward_port = 22
20150412 184651 forward_host = localhost
20150412 184651 content_length = 102400
20150412 184651 strict_
20150412 184651 use_std = 0
20150412 184651 debug_level = 9
20150412 184651 pid_filename = (null)
20150412 184651 waiting for tunnel connection
20150412 184751 connection from 127.0.0.1:46211
20150412 184751 read (5, 0x945a1f8, 1) ...
-------
htc.log
20150412 184705 htc (httptunnel) 3.3 started with arguments:
20150412 184705 me = htc
20150412 184705 device = (null)
20150412 184705 host_name = 127.0.0.1
20150412 184705 host_port = 443
20150412 184705 proxy_name = (null)
20150412 184705 proxy_port = 8080
20150412 184705 proxy_buffer_size = 0
20150412 184705 proxy_buffer_
20150412 184705 content_length = 102400
20150412 184705 forward_port = 10022
20150412 184705 max_connection_age = 300
20150412 184705 use_std = 0
20150412 184705 strict_
20150412 184705 keep_alive = 5
20150412 184705 proxy_authorization = (null)
20150412 184705 user_agent = (null)
20150412 184705 debug_level = 9
20150412 184705 server_socket (10022) = 4
20150412 184705 waiting for connection on port 10022
20150412 184751 wait_for_
20150412 184751 creating a new tunnel
20150412 184751 tunnel_new_client ("127.0.0.1", 443, "(null)", 8080, 102400)
20150412 184751 tunnel_connect()
20150412 184751 tunnel_
20150412 184751 tunnel_
20150412 184751 tunnel_
20150412 184751 tunnel_
20150412 184751 write (6, 0xbfc573bc, 43) ...
20150412 184751 ... = -1
20150412 184751 http_write_request: POST /index.
20150412 184751 http_write_request: write error: Invalid argument
20150412 184751 couldn't open tunnel: Invalid argument
20150412 184751 exit with status = 1
-------
ssh.log
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 10022.
debug1: Connection established.
debug1: permanently_
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.
ssh_exchange_
-------
Changed in httptunnel (Ubuntu): | |
status: | New → Confirmed |
This is indeed a bug. Here's a fix against 3.3+dfsg-3. See http:// askubuntu. com/a/694568/ 284211 for an explanation.