Fixed IP configuration of the new Raspbian system and methods for enabling the SSH login function of the root account

Source: Internet
Author: User

1. Fixed IP configuration for the 2016 new Raspbian system:

Since the release of the new Raspbian system in February 2016, the Raspberry Pi fixed IP configuration method is not the same as before.

The fixed IP configuration that was previously available in the Raspbian system to edit the/etc/network/interfaces file is completely unusable in the new version of the Raspbian system. But the new approach seems relatively simple:

First, confirm the/etc/network/interfaces,

Iface eth0 inet Manual

This line, at the end is manual, then, edit/etc/dpcpcd.conf, add at the end:

Interface eth0

Static ip_address=xxx.xxx.xxx.xxx/xx

It's OK after the reboot.

2. The root account of the Raspberry Pi SSH login settings:

First, with the PI user login (the default password is raspberry), execute the sudo passwd root command, modify the root password;

Then, edit the/etc/ssh/sshd_config file and locate the Permitrootlogin line;

If "sudo passwd--unlock root" has been executed before, it may show "without-passwd" or something, change this line to "Permitrootlogin yes", save exit and restart the system, The root account should be able to log in directly.

Fixed IP configuration of the new Raspbian system and methods for enabling the SSH login function of the root account

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.