بعد از نصب سیستم عامل Debian ، لاگین روت به صورت پی فرض در آن غیرفعال می باشد. زمانی که شما تلاش میکنید با یوزر روت به سرور Debian Jessie خود لاگین کنید ، دسترسی denied خواهد شد :
به منظورفعال کردن لاگین ssh برای یوزر root روی لینوکس Debian در ابتدا شما باید سرویس SSH را کانفیگ کنید. برای این منظور فایل /etc/ssh/sshd_config را باز و خطوط زیر را تغییر دهید:
بعد از اعمال تغییرات بالا سرویس ssh را ریستارت کنید:
زین پس شما قادر با لاگین ssh با یوزر root خواهید بود:
موفق باشید.
کد:
$ ssh root@10.1.1.12 root@10.1.1.12's password: Permission denied, please try again. root@10.1.1.12's password: Permission denied, please try again. root@10.1.1.12's password: Permission denied (publickey,password).
کد:
خط زیر را سرچ کنید PermitRootLogin without-password و به صورت زیر تغییر دهید: PermitRootLogin yes
کد:
# /etc/init.d/ssh restart [ ok ] Restarting ssh (via systemctl): ssh.service.
کد:
$ ssh root@10.1.1.12 root@10.1.1.12's password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.