On Sun, 05 Apr 2009 22:47:56 +0200, Wolfgang Draxinger wrote:
>> Thanks. I found I had to use localhost:22.
>
> In this case hts may bind to 127.0.0.1, and not all addresses. In
> case of doubt bind to 0.0.0.0:22
So I'm now trying
sudo hts -F 0.0.0.0:22 443
on the server; I've switched from 80 to 443 because a web server is
running on port 80, but doesn't use port 443.
>> > On the client
>> > htc -F 10022 server:80
>>
>> OK. Will there be a problem if there's already a web server
>> running on the server?
>
> Yes, since the web server will be listening on port 80 already.
> There can be only one program listening on an address' port.
> Also hts must be started as root if you want to bind it to a
> port below 1024.
So I now do
htc -F 10022 <server>:443
ssh -p 10022 <username>@localhost
and the latter produces
ssh_exchange_identification: Connection closed by remote host
> Check if htc listens on port 10022
>
> netstat -lnp | grep htc
sudo netstat -lnp | grep htc
yields no output.
Bob T.
|