- 修改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不一样