Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Login and su into root. Edit this file:
- nano /etc/ssh/sshd_config
- Scroll down for a bit and you’ll see a line that says
- PermitRootLogin without-password
- Put a # and a space in front of this line like so:
- # PermitRootLogin without-password
- now rewrite it on a new line like this:
- PermitRootLogin yes
- Now save the file and restart the SSH server.
- /etc/init.d/ssh restart
- Now you can SSH into it directly as root. Congrats! Your old insecure ways of doing things have returned.
- On Ubuntu
- sudo passwd
- Changes in /etc/ssh/sshd_config
- Change PermitRootLogin
- PermitRootLogin yes
- You may also have to check value of PasswordAuthentication. If it is set to no then set to yes
- PasswordAuthentication yes
- Then restart SSH:
- service ssh restart
Advertisement
Add Comment
Please, Sign In to add comment