operating_systems:raspbian:minimal_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
operating_systems:raspbian:minimal_configuration [2019/06/12 06:35] – [sshd_config file] maferreira | operating_systems:raspbian:minimal_configuration [2019/07/08 15:14] – [sshd_config file] maferreira | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Enable root account ===== | ===== Enable root account ===== | ||
As root account is disabled by default on raspbian, we need to activate it. But before doing that, mount / in read-write mode. | As root account is disabled by default on raspbian, we need to activate it. But before doing that, mount / in read-write mode. | ||
- | | + | |
- | # passwd root | + | # passwd root |
And then enter the new password you want. | And then enter the new password you want. | ||
- | | + | |
===== Rename user ===== | ===== Rename user ===== | ||
- | | + | |
- | # usermod -m -d /home/acdsn acdsn | + | # usermod -m -d /home/acdsn acdsn |
Set a password to the user | Set a password to the user | ||
- | | + | |
===== Rename group ===== | ===== Rename group ===== | ||
- | | + | |
===== Rename hostname ===== | ===== Rename hostname ===== | ||
- | | + | |
Replace the existing hostname by the new one. | Replace the existing hostname by the new one. | ||
===== SSH connection ===== | ===== SSH connection ===== | ||
====Generate ssh keys==== | ====Generate ssh keys==== | ||
- | | + | |
Add your public key to the server eG file (/ | Add your public key to the server eG file (/ | ||
Line 27: | Line 27: | ||
====sshd_config file==== | ====sshd_config file==== | ||
# vi / | # vi / | ||
- | | + | |
- | # | + | From |
- | | + | |
- | | + | # |
- | | + | # |
+ | # | ||
+ | # | ||
+ | |||
+ | To | ||
+ | |||
+ | | ||
+ | PermitRootLogin no | ||
+ | PubkeyAuthentication yes | ||
+ | PasswordAuthentication no | ||
====Allow connection from the server==== | ====Allow connection from the server==== | ||
Create the **/ | Create the **/ |