problems when running the example for ssh wan optimization

Juli Mallett juli at clockworksquid.com
Mon Feb 11 01:46:26 PST 2013


Boxiang,

You will need to check out WANProxy trunk from Subversion rather than
using the 0.8.0 release if you want to use SSH optimization.  If you
could provide me with your configs and the exact commands you're
trying to run if you still having trouble after updating, I should be
able to give you more specific help with your other issues.

Thanks,
Juli.

On Mon, Feb 11, 2013 at 12:39 AM, Boxiang Pan <aquarypbx at gmail.com> wrote:
> 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
>
>
>
>
> _______________________________________________
> wanproxy mailing list
> wanproxy at lists.wanproxy.org
> http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org
>



More information about the wanproxy mailing list