Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Enable ssh root login access
- Set a new password for the `root` user.
- ```shell
- sudo passwd
- ```
- Now open for editing ssh daemon's config file `/etc/ssh/sshd_config`.
- Set `PermitRootLogin` value to `yes` to enable logging is as root.
- ```
- PermitRootLogin yes
- ```
- Also check value of `PasswordAuthentication`. If it is set to `no` then set to `yes` for security reasons.
- ```
- PasswordAuthentication yes
- ```
- Then restart ssh service:
- ```shell
- service ssh restart
- ```
- Now you can log in to your server as `root` user.
- ```
- ssh root@domain.com
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement