problems when running the example for ssh wan optimization

Boxiang Pan aquarypbx at gmail.com
Mon Feb 11 00:39:59 PST 2013


Hello,

We just started to use WANProxy, we were trying to run the example on
http://wanproxy.org/ssh.shtml about SSH WAN optimization, but when we tried
to scp to the server by using  $scp -P 2200* username at server_ip
:~/somefile.zip * .  , the client received an error saying "connection
refused" . We noticed that on the webpage, it mentions that both server and
client will require an RSA private key. Our question is :
should we use "ssh-keygen -t rsa" to generate rsa key on server and client
separately?
which private key should we put in ssh-server1.pem on each machine?

Below is a detailed description the problem we encountered and a screenshot
is here:
https://docs.google.com/document/d/1qFbvN53aR1pOgGuRT5JbyVcaODL5qjAR7f0JUnAxDFU/edit?usp=sharing
We'd appreciate any suggestions and help. Thank you very much.
----

We have 2 machines, both connected to the same LAN, and both have installed
WANProxy successfully.

One machine is the client, and we put the example client.conf into the same
directory as wanproxy. We changed *set peer0.host "remote-server.net"* to
the other machine(server)'s ip address.

The other machine is the server, and we put the example server.conf into
the same directory as wanproxy. We changed *set if1.host "0.0.0.0" *to *set
if1.host "127.0.0.1" *.

Then we turned off the firewall of both machines, and ran $./wanproxy -c
client.conf , Here's the error we got:

Boxiangs-MacBook-Pro:wanproxy boxiang$
Boxiangs-MacBook-Pro:wanproxy boxiang$ ./wanproxy -c client.conf
1360558538.469823 [/wanproxy] INFO: WANProxy 0.8.0
1360558538.469866 [/wanproxy] INFO: Copyright (c) 2008-2012 WANProxy.org.
1360558538.469876 [/wanproxy] INFO: All rights reserved.
1360558538.469913 [/wanproxy/config] INFO: Configuring WANProxy.
1360558538.470113 [/config/type/enum] ERR: virtual bool
ConfigTypeEnum<WANProxyConfigProxyType>::set(const ConfigValue *, const
std::string &): Invalid value (SSH-SSH)
1360558538.470126 [/config/class] ERR: bool ConfigClass::set(ConfigObject
*, const std::string &, ConfigType *, const std::string &): Member (type)
could not be set.
1360558538.470135 [/config] ERR: bool Config::set(const std::string &,
const std::string &, const std::string &): Member (type) in object (proxy0)
could not be set.
1360558538.470144 [/wanproxy/config] ERR: void
WANProxyConfig::parse_set(std::deque<std::string> &): Set of object member
(proxy0.type) failed.
1360558538.470154 [/wanproxy/config] ERR: bool
WANProxyConfig::configure(const std::string &): Error in configuration
directive:    set proxy0.type SSH-SSH
1360558538.470173 [/wanproxy] ERR: int main(int, char **): Could not
configure proxies.
Boxiangs-MacBook-Pro:wanproxy boxiang$
Boxiangs-MacBook-Pro:wanproxy boxiang$


We then removed the line  *set proxy0.type SSH-SSH * in both server.conf
and client.conf, and then we were able to start wanproxy. We used
"ssh-keygen -t rsa" to generate rsa key for both client and server, and put
the private key into ssh-server1.pem file in the same directory as
wanproxy. We have tried putting the private rsa generated by the client on
both client and server; putting the private rsa on the client and public
rsa on the server, but in either case, we got a "connection refused" error
when we tried to scp to the server .

-- 

Boxiang Pan

Department of Electrical and Computer Engineering
University of California, San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wanproxy.org/pipermail/wanproxy-wanproxy.org/attachments/20130211/f0f1a0a6/attachment-0001.htm>


More information about the wanproxy mailing list