<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]ssh免密码登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 的解决方案！]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Fri, 18 Jan 2019 03:07:33 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	密钥登陆能，发现SSH不行，提示：<br/>$ssh -l xiangdong 10.244.25.** <br/>Permission denied (publickey,gssapi-keyex,gssapi-with-mic).<br/><br/>到：<br/>$ssh -l xiangdong 10.244.25.**<br/>xiangdong@10.244.25.89&#039;s password: <br/><br/><br/>实践OK办法，能密钥能密码：<br/>cat&nbsp;&nbsp;/etc/ssh/sshd_config&#124;grep -E &quot;PermitRootLogin&#124;UsePAM&#124;PasswordAuthentication&quot;<br/><br/>UsePAM yes&nbsp;&nbsp;#改成NO后出现需要密钥，还登陆不了。后修改为yes后重启oK service sshd restart<br/>PermitRootLogin yes<br/>PasswordAuthentication yes<br/><br/><br/>root依然不行，修改UsePAM no，还是不行，后来加一个irdcops帐号且能 sudo ,也就用它去SSH就行了：<br/>$ssh -l root 10.244.25.**<br/>root@10.244.25.**&#039;s password: <br/>Permission denied, please try again.<br/><br/>==================================<br/>首先：配置ssh服务器配置文件。<br/><br/>在root 用户下才能配置。<br/><br/>vi /etc/ssh/sshd_config<br/><br/>权限设为no：<br/><br/>#PermitRootLogin yes<br/><br/>#UsePAM yes<br/><br/>#PasswordAuthentication yes<br/><br/>如果前面有# 号，将#号去掉，之后将yes修改为no。<br/><br/>修改之后为：<br/><br/>PermitRootLogin no<br/><br/>UsePAM no<br/><br/>PasswordAuthentication no<br/><br/>权限设为yes：<br/><br/>RSAAuthentication yes<br/><br/>PubkeyAuthentication yes<br/><br/>（2）重启sshd服务<br/><br/>systemctl restart sshd.service<br/><br/>systemctl status sshd.service #查看ssh服务的状态<br/><br/>#systemctl start sshd.service&nbsp;&nbsp;#开启ssh服务<br/><br/>#sytemctl enable sshd.service #ssh服务随开机启动，还有个disabled<br/><br/>#systemctl stop sshd.ervice #停止<br/><br/>正常情况下应该是Active：active（running）<br/>摘自：https://www.cnblogs.com/xubing-613/p/6844564.html
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]ssh免密码登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 的解决方案！]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>