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*
Hi,
I'm really new to OpenVZ and was able to create two containers in a server, one with Debian 8 (IP=192.168.100.100) and another one with CentOS 7 (IP=192.168.100.101).
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 192.168.100.101, so it's there, but I can't log via ssh user@192.168.100.101 or root@192.168.100.101
$ ping 192.168.100.101
PING 192.168.100.101 (192.168.100.101) 56(84) bytes of data.
64 bytes from 192.168.100.101: icmp_seq=1 ttl=64 time=0.088 ms
64 bytes from 192.168.100.101: icmp_seq=2 ttl=64 time=0.052 ms
--- 192.168.100.101 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@192.168.100.101
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 "192.168.100.101" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.100.101 [192.168.100.101] port 22.
debug1: connect to address 192.168.100.101 port 22: Connection refused
ssh: connect to host 192.168.100.101 port 22: Connection refused


What could be the problem?
Previous Topic: RHEL5/CentOS5 CVE-2017-5754
Next Topic: Performance impact after patched kernel on centos6
Goto Forum:
  


Current Time: Mon Aug 20 16:44:27 GMT 2018