My Linux note Uncategorized August 30, 2020 docker exec -it pihole bash docker-compose stop pihole docker pull pihole/pihole:latest docker-compose start pihole sudo su – apt update ; apt upgrade sudo timedatectl set-timezone American/Los_Angeles debian – nano /etc/ssh/sshd_config PermitRootLogin yes /etc/init.d/ssh restart sudo hostnamectl set-hostname server1 cd /etc/netplan nano yaml file addresses: [] gateway4: x.x.x.x nameservers: addresses: [x.x.x.x, y.y.y.y ssh-keygen -t rsa -b 4096 ssh-copy-id root@server-ip cat ~/.ssh/id_rsa.pub | ssh root@remoteserver cat >> ~/.ssh/authorized_keyssudo passwd root
Recent Comments