The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Networking (http://hintsforums.macworld.com/forumdisplay.php?f=14)
-   -   SFTP, FTP, HTTP Connection Refused through clients (http://hintsforums.macworld.com/showthread.php?t=139294)

brent1a 12-14-2011 08:48 AM

Brents-Mac-Pro:~ brent$ ssh -4 serverx.xxxxonster.net
ssh: connect to host serverx.xxxxonster.net port 22: Connection refused
Brents-Mac-Pro:~ brent$ ssh -6 serverx.xxxxonster.net
ssh: Could not resolve hostname serverx.xxxxonster.net: nodename nor servname provided, or not known


I have no idea how to turn off or on IPv6. I hope that it is pretty simple.

brent1a 12-14-2011 08:53 AM

As far as I know I do not need IPv6, is that something I probably don't need then?

brent1a 12-14-2011 09:03 AM

Quote:

Originally Posted by SirDice (Post 656148)
Ah. We're getting closer.

I see you have no problems connecting with IPv4 to my server. But using IPv6 results in the now familiar "no route to host".

See if you can use that to connect to your server by using ssh -4.

If you don't have a need for IPv6 I'd try turning it off completely. If you do need IPv6 we'd need to dig a little deeper but currently it looks like a misconfigured IPv6 is the issue.

I tried setting IPv6 in my Network Settings to both "Link-Local Only" and "Manual" and in both instances I still get the 'connection refused' when trying to SFTP.
Under Lion I don't see any option in my Network Settings to totally turn of IPv6.

SirDice 12-14-2011 09:59 AM

Quote:

Originally Posted by brent1a (Post 656153)
Brents-Mac-Pro:~ brent$ ssh -4 serverx.xxxxonster.net
ssh: connect to host serverx.xxxxonster.net port 22: Connection refused

Not good :(

But this does seem to point to the hoster.

Quote:

Brents-Mac-Pro:~ brent$ ssh -6 serverx.xxxxonster.net
ssh: Could not resolve hostname serverx.xxxxonster.net: nodename nor servname provided, or not known
Alright, that simply tells us there's no IPv6 DNS for that host. No problem, it just means you can't use IPv6.


Quote:

I have no idea how to turn off or on IPv6. I hope that it is pretty simple.
On Snow Leopard this is fairly easy, not sure how Lion handles it.

To be honest I'm a bit stumped now. Connecting to my server wasn't a problem so this pretty much rules out any local issues. I am a bit worried about the failing traceroute though, there's no reason why that should fail. At the very least you should see a couple of hops outside of your own network.

I thought I had it when IPv6 failed but I still can't put my finger on which side is causing the issue, your local machine or network, your ISP or the hoster.


All times are GMT -5. The time now is 07:00 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.