Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

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

1 Answer 1

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
1  
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.