Xshell設置密鑰登陸CentOS6.5_64位(文字命令版)

一、新建/root/.ssh目錄
	mkdir /root/.ssh
二、建立authorized_keys文件
	vi /root/.ssh/authorized_keys
三、複製公鑰內容保存
	:wq
四、設置authorized_keys權限
	/bin/chmod 600 /root/.ssh/authorized_keys
五、修改/etc/ssh/sshd_config
	vi /etc/ssh/sshd_config
	原內容:
	#RSAAuthentication yes
	#PubkeyAuthentication yes
	PasswordAuthentication yes
	更改成:
	RSAAuthentication yes
	PubkeyAuthentication yes
	PasswordAuthentication no
六、從新啓動SSH
	/etc/init.d/sshd restart
相關文章
相關標籤/搜索