Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CentOS 5.5 server hosted in a remote data center. I usually access this server from a Red Hat Enterprise Linux 5 server using the ssh command. Now my organization has implemented a proxy server, this is not allowing me to connect to the VPS server.

I see the following error using the command root@<ip address>:-:

ssh: connect to host <ip address> PORT 22: connection refused.

Can anybody help me with this issue?

share|improve this question

closed as off topic by Bart De Vos, Tom O'Connor, Iain Apr 6 '12 at 11:37

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

The only correct answer to your question is - Talk to your organisation and negotiate an exception. – Iain Apr 6 '12 at 11:37
up vote 1 down vote accepted

It sounds like your organization has restricted outbound traffic. SSH cannot be proxied over an HTTP proxy, so you will have to speak to your network administrators about allowing this access.

share|improve this answer
Ahem Corkscrew – Bart De Vos Apr 6 '12 at 11:14
Hadn't heard of that. Website doesn't say how it works? Anyway, I still think he should talk to his network administrators, as bypassing a proxy could be a violation of his security policy (it would be at my company, for example). – Kyle Smith Apr 6 '12 at 11:17
Indeed, he should go talk with the network admin. But, if you are wondering how it works, SSH client > Corkscrew > SSH Server. Corkscrew will package ssh as HTTP. IF you have a blocked port, make SSH listen on port 443, should work ;-). – Bart De Vos Apr 6 '12 at 11:19
I understand packing the SSH data into an HTTP payload for transit through a proxy, I'm confused how the SSH server doesn't just throw it away as it contains HTTP headers, etc? – Kyle Smith Apr 6 '12 at 11:21
I've never examined a package but I guess SSH can work with HTTP-packages somehow. – Bart De Vos Apr 6 '12 at 11:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.