Hello, <div><br></div><div>We just started to use WANProxy, we were trying to run the example on <a href="http://wanproxy.org/ssh.shtml">http://wanproxy.org/ssh.shtml</a> about SSH WAN optimization, but when we tried to scp to the server by using  $scp -P 2200<i> username@server_ip:~/somefile.zip </i> .  , 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 : </div>
<div>should we use "ssh-keygen -t rsa" to generate rsa key on server and client separately? </div><div>which private key should we put in ssh-server1.pem on each machine? </div><div><br></div><div>Below is a detailed description the problem we encountered and a screenshot is here: </div>
<div><a href="https://docs.google.com/document/d/1qFbvN53aR1pOgGuRT5JbyVcaODL5qjAR7f0JUnAxDFU/edit?usp=sharing">https://docs.google.com/document/d/1qFbvN53aR1pOgGuRT5JbyVcaODL5qjAR7f0JUnAxDFU/edit?usp=sharing</a></div><div>
We'd appreciate any suggestions and help. Thank you very much.</div><div>----</div><div><br></div><div>We have 2 machines, both connected to the same LAN, and both have installed WANProxy successfully. </div><div><br>
</div><div>One machine is the client, and we put the example client.conf into the same directory as wanproxy. We changed <i>set peer0.host "<a href="http://remote-server.net">remote-server.net</a>"</i> to the other machine(server)'s ip address. </div>
<div><div><br></div><div>The other machine is the server, and we put the example server.conf into the same directory as wanproxy. We changed <i>set if1.host "0.0.0.0" </i>to <i>set if1.host "127.0.0.1" </i>. </div>
<div><br></div><div>Then we turned off the firewall of both machines, and ran $./wanproxy -c client.conf , Here's the error we got: </div><div><br></div><div><div>Boxiangs-MacBook-Pro:wanproxy boxiang$ </div><div>Boxiangs-MacBook-Pro:wanproxy boxiang$ ./wanproxy -c client.conf</div>
<div>1360558538.469823 [/wanproxy] INFO: WANProxy 0.8.0</div><div>1360558538.469866 [/wanproxy] INFO: Copyright (c) 2008-2012 WANProxy.org.</div><div>1360558538.469876 [/wanproxy] INFO: All rights reserved.</div><div>1360558538.469913 [/wanproxy/config] INFO: Configuring WANProxy.</div>
<div>1360558538.470113 [/config/type/enum] ERR: virtual bool ConfigTypeEnum<WANProxyConfigProxyType>::set(const ConfigValue *, const std::string &): Invalid value (SSH-SSH)</div><div>1360558538.470126 [/config/class] ERR: bool ConfigClass::set(ConfigObject *, const std::string &, ConfigType *, const std::string &): Member (type) could not be set.</div>
<div>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.</div><div>1360558538.470144 [/wanproxy/config] ERR: void WANProxyConfig::parse_set(std::deque<std::string> &): Set of object member (proxy0.type) failed.</div>
<div>1360558538.470154 [/wanproxy/config] ERR: bool WANProxyConfig::configure(const std::string &): Error in configuration directive:    set proxy0.type SSH-SSH </div><div>1360558538.470173 [/wanproxy] ERR: int main(int, char **): Could not configure proxies.</div>
<div>Boxiangs-MacBook-Pro:wanproxy boxiang$ </div><div>Boxiangs-MacBook-Pro:wanproxy boxiang$ </div></div><div><br></div><div><br></div><div>We then removed the line  <i>set proxy0.type SSH-SSH </i> 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 . </div>
<div><br></div>-- <br><div><br></div><font color="#663333"><font face="verdana, sans-serif">Boxiang Pan</font><br><br></font><div><div><font color="#663333">Department of Electrical and Computer Engineering</font></div><div>
<font color="#663333">University of California, San Diego </font></div><div><font color="#663333"><br></font><br></div><div><br></div></div>
</div>