SCP権限が拒否されました。

SCP権限が拒否されました。

ホストUbuntu 16.0.4に2つのLXCコンテナを作成しました。 1つはUbuntu、もう1つはCentos7です。 rootユーザーとしてscpコマンドを使用してCentos7からUbuntuにファイルをコピーしようとしましたが、rootパスワードを要求し、正しいパスワードを入力して権限が拒否されました。私が拒否された理由がわかりますか?ここに画像の説明を入力してください。

ベストアンサー1

root ログインを許可/etc/ssh/sshd_config(PermitRootLogin Yes) してログインできました。

~によると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”.

sshd_configを変更したら、sshdを再起動する必要があります。

おすすめ記事