0

I’m trying to connect to a Linux machine via SSH. The problem is that my Mac is in a different network, behind a proxy that routes HTTP and HTTPS through port 80.

How can I access the Linux machine via SSH from terminal?

Connecting with -vvv returns the following result:

OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to _example.com_ [_ip_address_] port 22.
debug1: connect to address _ip_address_ port 22: Connection refused
ssh: connect to host _example.com_ port 22: Connection refused
7
  • SSH doesn't use HTTP or HTTPS, so from your description the web proxy is irrelevant. Possibly there is a firewall preventing you from connecting to the standard SSH port (22)?
    – Gerry
    Commented Jul 26, 2012 at 8:55
  • @Gerry I am behind a firewall, yes. And I’m interested in a solution to make it work in these conditions.
    – Alex
    Commented Jul 26, 2012 at 8:59
  • 1
    Hard to say, if the firewall effectively blocks everything except web traffic via the web proxy, there is no way to directly connect via SSH to your host. If the firewall allows traffic outside on different ports, you can configure your SSH server to listen on another port than the default.
    – Gerry
    Commented Jul 26, 2012 at 9:02
  • 1
    Can you try to connect using the -vvv argument and edit the question with the output? Commented Feb 9, 2013 at 20:51
  • @WarrenPena, see the edit to my question.
    – Alex
    Commented Apr 29, 2013 at 13:36

1 Answer 1

-1

You may need tunneling technique for accessing an HTTP proxy using SSH tunneling check this link: http://kimmo.suominen.com/docs/proxy-through-ssh/

3
  • They're trying to connect to SSH, not HTTP. Commented Feb 9, 2013 at 20:52
  • The question says: How can I access the Linux machine via SSH from terminal?
    – NKN
    Commented Feb 13, 2013 at 11:46
  • The server administrator should give them a VPN and provide access to SSH (port 22) through the proxy.
    – NKN
    Commented Feb 13, 2013 at 11:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .