OpenVZ Forum

Home » General » Support » Can't SSH to container
Can't SSH to container [message #53143] Wed, 17 January 2018 14:12
irazoquimatias is currently offline  irazoquimatias
Messages: 1
Registered: January 2018
Location: Rafaela, Argentina
Junior Member
From: 190.216.64*
I'm really new to OpenVZ and was able to create two containers in a server, one with Debian 8 (IP= and another one with CentOS 7 (IP=
I can access the Debian container (via ssh and vzctl enter) without problem, but I can't ssh into the CentOS. The only way to enter into this container is via vzctl enter
I can ping the IP, so it's there, but I can't log via ssh user@ or root@
$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.088 ms
64 bytes from icmp_seq=2 ttl=64 time=0.052 ms
--- ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.052/0.070/0.088/0.018 ms

$ ssh -vvv root@
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to [] port 22.
debug1: connect to address port 22: Connection refused
ssh: connect to host port 22: Connection refused

What could be the problem?
Previous Topic: Performance impact after patched kernel on centos6
Next Topic: 3.10.0-693.11.6.vz7.40.4 Out of memory on one Server
Goto Forum:

Current Time: Fri Mar 23 20:33:30 GMT 2018