ssh到centos主机

ssh到centos主机

Port 22
AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::


PermitRootLogin yes

RSAAuthentication yes
PubkeyAuthentication yes

配置ssh-id


ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host

ssh root@remote-host