- 修改hostname
hostnamectl set-hostname new_host_name
- 關閉防火牆
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
- 配置host
192.168.40.x nx
- 配置免密
ssh-keygen
ssh-copy-id -i id_rsa.pub nx # 注意不同用戶的authorized_keys不一樣
hostnamectl set-hostname new_host_name
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
192.168.40.x nx
ssh-keygen
ssh-copy-id -i id_rsa.pub nx # 注意不同用戶的authorized_keys不一樣
https://www.bilibili.com/video/BV1k8411575T/?vd_source=d68ed178f151e80fea1e02efd205802c