Can't connect via ssh after a while

393 views
Skip to first unread message

spiriner

unread,
Jun 8, 2012, 10:35:26 AM6/8/12
to pagekite-discuss
Hello !

I installed and configured pagekite on Mac OS 10.6 to gain access via
http and via ssh.
When I launch the script manually, I can connect via both http and ssh
(on user.pagekite.me).
Now, pagekite is launched as a service (launchctl). At first (directly
after launch or relaunch), everything works fine.
But after a while, or a network change, I can't connect via ssh
anymore : "ssh_exchange_identification: Connection closed by remote
host".
Then, if I just go to http://user.pagekite.me on my browser (where I
see my http share correctly), ssh connection starts working again.

I did this multiple times with the same results, so the link is clear.

Can somebody please tell me what I can do to fix this ?
Best regards,

Laurent.

Bjarni Rúnar Einarsson

unread,
Jun 8, 2012, 10:40:38 AM6/8/12
to pagekite...@googlegroups.com
Hello!

On Fri, Jun 8, 2012 at 2:35 PM, spiriner <las...@gmail.com> wrote:
> I installed and configured pagekite on Mac OS 10.6 to gain access via
> http and via ssh.
> When I launch the script manually, I can connect via both http and ssh
> (on user.pagekite.me).
> Now, pagekite is launched as a service (launchctl). At first (directly
> after launch or relaunch), everything works fine.
> But after a while, or a network change, I can't connect via ssh
> anymore : "ssh_exchange_identification: Connection closed by remote
> host".
> Then, if I just go to http://user.pagekite.me on my browser (where I
> see my http share correctly), ssh connection starts working again.
>
> I did this multiple times with the same results, so the link is clear.

It sounds like you are relying on the deprecated http-before-ssh
behavior described here:

http://pagekite.net/wiki/Howto/HttpBeforeSsh/

As described on that page, this method of doing SSH is unreliable and
not recommended. The recommended way to use SSH over PageKite is to
configure the client as described here:

http://pagekite.net/wiki/Howto/SshOverPageKite/#client

Does this help?

--
Bjarni R. Einarsson
Founder, lead developer of PageKite.

Make localhost servers visible to the world: https://pagekite.net/
Reply all
Reply to author
Forward
0 new messages