I
I
Igor Gunkin2019-07-11 14:03:49
linux
Igor Gunkin, 2019-07-11 14:03:49

How to login to server via SSH as root?

I fully configured the Debian 8 x64 server on VirtualBox, I log in under the standard IP (192.168.56.10), I can easily connect via Putty, but I enter the data and writes that the data is not correct, I return to virtualbox, restart, enter the same data as in putty , I'm all right. Please help, what is the reason why I can not log in not from root not through a regular user

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2019-07-11
@Rsa97

/etc/ssh/sshd_config
Parameter PermitRootLogin
But remote login as root is not the best solution.
Log in as a normal user and use sudo.

C
CityCat4, 2019-07-11
@CityCat4

Because it is NOT possible to do so .
Do not go into the reasons why this should not be done yet - just take it on faith, as a mathematical axiom - remote login under the root is FORBIDDEN .
Create a regular user, write it to /etc/sudoers, log in as a user, and do commands to manage the system through sudo

S
SagePtr, 2019-07-11
@SagePtr

Set up authorization using SSH keys, it's much more convenient and you don't need to enter anything.

A
Andreyky, 2019-08-01
@Andreyky

if it's not too late.
Is there any certainty that through putty you get to the virtual machine, and not to the host's sssh?
you can try ssh [email protected] (to yourself via sssh) in a virtual machine
? then you need to deal with where you connect from putti.
I usually configure the network as a bridge in the virtual machine settings, and it receives a "normal network address" and you can connect to it from any device on the network.
all of the above options are good, but relevant after resolving the connection issue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question