Launch SSH server for root with password authentication (on a temporary basis)

Many of the recent Linux distro. disallows the root login with a password by default. The following command launches an SSH server on a temporary basis that allows the root login with a password.
/usr/bin/sshd -d -p 8022 -o "PermitRootLogin yes"
  • -d: Run on the foreground and show some debug messages.
  • -p: Port number
  • -o: Options. Here we allow root login.

A way to login from client.
ssh -p 8022 -lroot server-ip-addr

No comments:

Post a Comment