*CLOSED* Refused connect from ipv6 using ssh [message #10297] |
Wed, 14 February 2007 13:49 |
|
JimL
Messages: 116 Registered: February 2007
|
Senior Member |
|
|
This may not be entirely an openvz problem, except I've never had a system default to ipv6 before I started using openvz.
Host is fc6
Kernel is 2.6.18-ovz028test010.1-smp
guest is Ubuntu (6.10 I think, but not sure).
This chunk of the log explains what's happening.
Feb 14 13:35:14 walnut sshd[11643]: refused connect from ::ffff:192.168.2.102 (::ffff:192.168.2.102)
Feb 14 13:35:35 walnut sshd[11547]: (pam_unix) session closed for user june
Feb 14 13:36:04 walnut sshd[11650]: Accepted publickey for june
from 192.168.2.101 port 46839 ssh2
From a system that identifies itself as ipv4 I can get in, however from the openvz host it fails I think because it is a ipv6 host.
The error message I get from failed attempt to connect is:
ssh_exchange_identification: Connection closed by remote host
That's from a simple ssh 192.168.2.50
What's the best way to fix this problem?
Thanks,
Jim.
[Updated on: Tue, 20 February 2007 08:35] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: Refused connect from ipv6 using ssh [message #10432 is a reply to message #10392] |
Mon, 19 February 2007 10:40 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Hello,
First of all I'd like to note that it's hard to understand you for me, because you use a bit odd terms. Let me explain. Suppose we have _one_ hardware node with OpenVZ installed on it. It is often called host node. If there are VEs on this host node, they are often called guests.
You don't specify do you create VEs or you don't, so as far as I understand at the moment, in your post "guest" means some other hardware node, that runs sshd server.
So you have the following situation:
1) There is a HN that runs OpenVZ kernel, but there is no VE on it. It runs FC6 distribution. This HN has IPv6 address ::ffff:192.168.2.102. Let's call this HN "OvzHN".
2) There is another HN with non-OpenVZ kernel, that runs sshd server. It runs Ubuntu. Its IP address is 192.168.2.50 (or IPv6?). Lets call this HN "server"
3) When you trying to get to "server" by ssh from "OvzHN", on "server" you have the following in /var/log/messages:
Feb 14 13:35:14 walnut sshd[11643]: refused connect from ::ffff:192.168.2.102 (::ffff:192.168.2.102)
4) From ipv4 systems you can get to "server" by ssh.
If what I described - is your situation, then restarting OvzHN into FC6 original server will reveal is it OpenVZ related problem or not. If it is not your situation, please describe it more clearly.
Thanks,
Vasily.
|
|
|
|
|
|