0

This is my proxy credentials, and this will successfully connect to the server:

❯ ssh uuuser@aaaddress -p 22                                         
  uuuser@aaaddress password: pppassword

Now I'm trying send request through this proxy with HTTParty:

response = HTTParty.post 'my_url', { 
        body: { "my body" },
        http_proxyaddr: aaadress,
        http_proxyport: 22,
        http_proxyuser: uuuser,
        http_proxypass: pppassword
}

But this request raises wrong status line: "SSH-2.0-OpenSSH_5.3" error. What could be the issue?

Harvordey
  • 3
  • 1

1 Answers1

0

A ssh server is not an HTTP proxy. You're mixing services here.

eugen
  • 8,916
  • 11
  • 57
  • 65
  • mm therefore, to have my vps's ip from my httparty script, I should set up http connection on my vps? – Harvordey Dec 16 '15 at 10:29
  • You need to set up a HTTP proxy server on `aaadress` machine, not a ssh server, and tell HTTParty to connect through that proxy. This is not a programming task, it's more of a system administration task, maybe someone with experience in that area can help you set up the proxy server. – eugen Dec 16 '15 at 10:34