Be default, Ubuntu does not allow to access ssh through root user. To do this, following steps:
Step 1: set password for root user. See details at Change root user password
Step 2: edit file "/etc/ssh/sshd_config"
1 | vi /etc/ssh/sshd_config |
Step 3: comment and add new line like this
1 2 | #PermitRootLogin without-password PermitRootLogin yes |
Step 4: restart SSH
1 | service ssh restart |
0 comments:
Post a Comment