-2

I have created two LXC containers on my host Ubuntu 16.0.4 one is Ubuntu and the other is Centos7 .I am trying to copy file from Centos7 using scp command to Ubuntu as root user it is asking for root password while I entered correct password it’s showing permission denied.May I know the possible reason why I am getting denied?enter image description here

naveen8577
  • 21
  • 1
  • 2
  • 7

1 Answers1

1

By allowing the root in /etc/ssh/sshd_config (PermitRootLogin Yes), I was able to login.

according to man sshd_config

 PermitRootLogin
         Specifies whether root can log in using ssh(1).  The argument must be “yes”, “prohibit-password”, “without-password”, “forced-commands-only”,
         or “no”.  The default is “prohibit-password”.

note that sshd must be restarted after a change in sshd_config.

Archemar
  • 31,183
  • 18
  • 69
  • 104
naveen8577
  • 21
  • 1
  • 2
  • 7