pi
and password raspberry
sudo raspi-config
sudo raspi-config
hostname -I
From now on you can remotely access the system from an SSH client at this IP address, which we’ll refer to as ip
below.
sudo raspi-config
sudo adduser newuser
sudo adduser newuser sudo
pi
usersudo deluser --remove-home pi
sudo su
From your client machine:
ssh-copy-id newuser@ip
Add the following to /etc/ssh/sshd_config
to enforce public key authentication etc.:
Protocol 2
PasswordAuthentication no
PermitRootLogin no
PubkeyAuthentication yes
AuthenticationMethods publickey
AllowUsers newuser
PermitEmptyPasswords no
Edit the host name file:
sudo nano /etc/hostname
Then replace occurrences of raspberrypi
with the new host name:
sudo nano /etc/hosts
Then reboot your system:
sudo reboot
Content © 2024 Richard Cook. All rights reserved.