21 августа 2018 г.

как добавить root для SSH

  1. Login via ssh with your user
  2. User the command “sudo su” to gain root privileges (Enter the same password as your user )
  3. Use the command “passwd root” to give root a password
  4. Open the file “/etc/ssh/sshd_config”
  5. Find the line “PermitRootLogin” and make sure it set to yes
  6. Restart your ssh service with “service ssh restart”

Комментариев нет:

Отправить комментарий

Linux, очистка диска, управление дисковым пространством

  Команда sudo du -h / | sort -h -r | head -n 20 Описание Эта команда позволяет быстро найти самые «тяжёлые» папки и файлы на диске в...