OpenVZ Forum


Home » General » Support » *SOLVED* Cant login to VE via SSH
*SOLVED* Cant login to VE via SSH [message #6302] Wed, 13 September 2006 20:23 Go to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
Hi!

I have installed OpenVZ recently and I have now created few VE's and given them public IP. Everything has went well, except that I can not login to VE via SSH. I make connection it asks for username and password, after entering it says "access denied". I have checked SSH config, I have doublechecked the passwords...

Other funny thing is that I cant use internet (not even ping anything) from the VE, but I can still try to SSH into it from outside?

I have checked that my hardware node has a different IP address. Any ideas?

[Updated on: Mon, 18 September 2006 07:33] by Moderator

Report message to a moderator

Re: Cant login to VE via SSH [message #6306 is a reply to message #6302] Wed, 13 September 2006 22:09 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
You need to set nameserver ips.

vzctl set xxx --nameserver xxx.xx.xxx.xxx
Re: Cant login to VE via SSH [message #6307 is a reply to message #6306] Wed, 13 September 2006 22:15 Go to previous messageGo to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
Chris.S wrote on Thu, 14 September 2006 01:09

You need to set nameserver ips.

vzctl set xxx --nameserver xxx.xx.xxx.xxx


nameservers have been set to same what hostnode has, in /etc/resolv.conf but still the same error.
Re: Cant login to VE via SSH [message #6309 is a reply to message #6307] Wed, 13 September 2006 22:23 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
did you change your sysctl config file like it says to do?
Re: Cant login to VE via SSH [message #6312 is a reply to message #6309] Wed, 13 September 2006 22:35 Go to previous messageGo to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
Chris.S wrote on Thu, 14 September 2006 01:23

did you change your sysctl config file like it says to do?


Yep, here's 2 different that I have tried (2 different because I wasnt sure if the existing one was supposed to be modified or replaced with the one in the installation manual):

---
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(Cool and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
-------

and

-------
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(Cool and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(Cool and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_synack_retries = 2

net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

[Updated on: Wed, 13 September 2006 22:36]

Report message to a moderator

Re: Cant login to VE via SSH [message #6323 is a reply to message #6302] Thu, 14 September 2006 07:18 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
What template do you use?
Re: Cant login to VE via SSH [message #6334 is a reply to message #6323] Thu, 14 September 2006 09:50 Go to previous messageGo to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
I have been using Centos4 and FC5 pre-created templates downloaded from openvz.org.
Re: Cant login to VE via SSH [message #6339 is a reply to message #6334] Thu, 14 September 2006 10:15 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Really strange... I've just installed thess templates an for me it works... Can you provide me temporary access to the node?
If yes post me private message...
Re: Cant login to VE via SSH [message #6346 is a reply to message #6339] Thu, 14 September 2006 11:16 Go to previous messageGo to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
vass wrote on Thu, 14 September 2006 13:15

Really strange... I've just installed thess templates an for me it works... Can you provide me temporary access to the node?
If yes post me private message...


you got mail. Smile
Re: Cant login to VE via SSH [message #6442 is a reply to message #6346] Mon, 18 September 2006 07:33 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
during PMing the problem was solved. Reason: some node in the net had the same IP address. From dreamwiz:

Quote:

I figured it out - my dc had assigned the ip's to the server automatically. To make a quick fix, I just ordered new set of unassigned ip's and now I can login through SSH just fine. Thanks for your assistance!
Previous Topic: *SOLVED* Transfer Problem (32bit --> 64bit)
Next Topic: Network diagnostics script
Goto Forum:
  


Current Time: Sun Jul 14 22:31:32 GMT 2024

Total time taken to generate the page: 0.02304 seconds