Linux添加用户并授予权限AdduseruseraddrsyncAddpasswordpasswdrsyncssh/id_rsa):Enterpassphrase(emptyfornopassphrase):Entersamepassphraseagain:Youridentificationhasbeensavedin/root/.ssh/id_rsa.Yourpublickeyhasbeensavedin/root/.ssh/id_rsa.pub.The密钥指纹为:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx密钥的随机图像为:复制到服务器ssh-copy-id-i~/.ssh/id_rsa.pubrsync@10.254.xxx.xxx无密码登录sshrsync@10.254.162.254sudo权限root用户visudo添加配置#用户权限说明rootALL=(ALL)ALLrsyncALL=(ALL)ALL如果需要免密码登录#用户权限说明rootALL=(ALL)ALLrsyncALL=(ALL)NOPASSWD:ALL参考教程HowtoforCentos添加用户并授予SSH权限?使用ssh-keygen-ssh-copy-idadding-user-and-sudo-rule-in-the-sudoers-file执行ssh-login-without-password-ssh-copy-idadding-user-and-sudo-rule的3个步骤
