Skip to main content
code block/escape for clarity
Source Link
HalosGhost
  • 4.9k
  • 10
  • 37
  • 42

Try a different DNS server (OpenDNS or google).

I was having this problem and upping MaxSessions didn't help.

In /var/log/auth.log/var/log/auth.log I found many errors along the lines of: sshd[24976]: error: connect_to p.ebaystatic.com: unknown host (Name or service not known)

sshd[24976]: error: connect_to p.ebaystatic.com: unknown host (Name or service not known)

Even though I could ping all the hosts and it would find them no problem. For me, switching from google DNS to OpenDNS fixed it (for now). (Perhaps the ultimate cause is dropped packets on my Internet connection causing DNS timeouts. Not sure.)

Anyways, when you try to socks proxy connect to a host that DNS cannot find, I think it is one cause of the "administratively prohibited" error message.

Try a different DNS server (OpenDNS or google).

I was having this problem and upping MaxSessions didn't help.

In /var/log/auth.log I found many errors along the lines of: sshd[24976]: error: connect_to p.ebaystatic.com: unknown host (Name or service not known)

Even though I could ping all the hosts and it would find them no problem. For me, switching from google DNS to OpenDNS fixed it (for now). (Perhaps the ultimate cause is dropped packets on my Internet connection causing DNS timeouts. Not sure.)

Anyways, when you try to socks proxy connect to a host that DNS cannot find, I think it is one cause of the "administratively prohibited" error message.

Try a different DNS server (OpenDNS or google).

I was having this problem and upping MaxSessions didn't help.

In /var/log/auth.log I found many errors along the lines of:

sshd[24976]: error: connect_to p.ebaystatic.com: unknown host (Name or service not known)

Even though I could ping all the hosts and it would find them no problem. For me, switching from google DNS to OpenDNS fixed it (for now). (Perhaps the ultimate cause is dropped packets on my Internet connection causing DNS timeouts. Not sure.)

Anyways, when you try to socks proxy connect to a host that DNS cannot find, I think it is one cause of the "administratively prohibited" error message.

Source Link
Rob
  • 11
  • 1

Try a different DNS server (OpenDNS or google).

I was having this problem and upping MaxSessions didn't help.

In /var/log/auth.log I found many errors along the lines of: sshd[24976]: error: connect_to p.ebaystatic.com: unknown host (Name or service not known)

Even though I could ping all the hosts and it would find them no problem. For me, switching from google DNS to OpenDNS fixed it (for now). (Perhaps the ultimate cause is dropped packets on my Internet connection causing DNS timeouts. Not sure.)

Anyways, when you try to socks proxy connect to a host that DNS cannot find, I think it is one cause of the "administratively prohibited" error message.