بازیابی رمز centos7

https://www.liberiangeek.net/2014/09/reset-forgotten-root-password-centos-7-servers/

https://www.unixmen.com/reset-root-password-centos-7/

 

نصب openssh در ubonto

برای نصب ssh در اوبونتو دور راه وجود دارد یکی آنکه در هنگام نصب آنرا فعال نمایید و نصب شود یا اینکه پس از نصب با زدن دستور زیر نصبت به نصب آن اقدام نماییم.

sudo apt-get install openssh-server

وارد کردن رمز بادشترسی Root

فعال کردن سرویس ssh

sudo service ssh start
دادن دسترسی به یوزر جهت لاگین از طریق putty
با زدن دستور زیر فایل تنظیمات باز خاهد شد
sudoedit /etc/ssh/sshd_config
و در ادامه به دنبال #PasswordAuthentication می گردیم و علامت # را از ابدای خط بر میداریم که از حالت کامنت خارج شود.
سپس با زدن دکمه ctrl+x و زدن y فایل ویرایش شده را ذخیره مینماییم.
با دشتور زیر سرویس را ری استارت می کنیم
sudo service ssh restart




بازیابی رمز redhat7

RESET ROOT

Resetting the root password on RHEL 7 Systems

Howto Reset Root Passwords on RHEL 7 and CentOS 7 Linux Systems

 If you have forgotten your root password on a Red Hat Enterprise Linux 7 server or a CentOS 7 server, you can reset your root password as long as you have access to the GRUB 2 bootloader. (The following example was performed on a CentOS 7 server)

To access the GRUB 2 bootloader, boot your system and wait for the GRUB 2 menu to appear:

Boot System and wait for GRUB 2 menu

Boot your system and wait until the GRUB2 menu appears. On some systems you may need to press the "Escape" key to access the GRUB 2 menu.


RHEL 7 GRUB 2 Menu Screen 

 

ادامه نوشته