ssh到centos主机

烂漫一生 提交于 2020-03-05 21:48:01
yum install -y openssl openssh-server


vim /etc/ssh/sshd_config


打开下面的配置:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!