<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SSH 登录失败 解决 &#8211; 峰哥爱分享-专注电脑手机软件网站工具分享</title>
	<atom:link href="https://xnzyh.com/tag/ssh-%e7%99%bb%e5%bd%95%e5%a4%b1%e8%b4%a5-%e8%a7%a3%e5%86%b3/feed" rel="self" type="application/rss+xml" />
	<link>https://xnzyh.com</link>
	<description>峰哥爱分享,电脑软件推荐,手机软件推荐,免费开源软件,实用工具推荐,有趣网站,电脑系统安装,AI软件应用</description>
	<lastBuildDate>Wed, 22 Oct 2025 07:55:11 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://xnzyh.com/wp-content/uploads/2025/05/cropped-favicon-1-32x32.png</url>
	<title>SSH 登录失败 解决 &#8211; 峰哥爱分享-专注电脑手机软件网站工具分享</title>
	<link>https://xnzyh.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Oracle甲骨文服务器ssh私钥丢失，root 密码忘记了，找回方法</title>
		<link>https://xnzyh.com/417.html</link>
					<comments>https://xnzyh.com/417.html#respond</comments>
		
		<dc:creator><![CDATA[峰哥爱分享]]></dc:creator>
		<pubDate>Wed, 22 Oct 2025 07:55:10 +0000</pubDate>
				<category><![CDATA[其他分享]]></category>
		<category><![CDATA[BT Panel 密码找回]]></category>
		<category><![CDATA[Linux 工具箱 修改 root 密码]]></category>
		<category><![CDATA[Oracle 服务器 密码恢复]]></category>
		<category><![CDATA[SSH 登录失败 解决]]></category>
		<category><![CDATA[宝塔面板 重置 root 密码]]></category>
		<guid isPermaLink="false">https://xnzyh.com/?p=417</guid>

					<description><![CDATA[当 Oracle甲骨文服务器的SSH 私钥或 root 密码丢失且服务器安装宝塔面板时，使用宝塔的「Linux [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>当 Oracle甲骨文服务器的SSH 私钥或 root 密码丢失且服务器安装宝塔面板时，使用宝塔的「Linux 工具箱」插件能快速、安全地重置 root 密码。接下来就给大家就介绍一些具体的操作。</p>



<h2 class="wp-block-heading">操作步骤</h2>



<h3 class="wp-block-heading">1. 登录宝塔面板</h3>



<p>在浏览器输入 <code>宝塔面板的登陆网址</code>，用面板账号密码登录面板后台。</p>



<h3 class="wp-block-heading">2. 打开软件商店并安装 Linux 工具箱</h3>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="402" src="https://xnzyh.com/wp-content/uploads/2025/10/image-1024x402.png" alt="" class="wp-image-418" srcset="https://xnzyh.com/wp-content/uploads/2025/10/image-1024x402.png 1024w, https://xnzyh.com/wp-content/uploads/2025/10/image-300x118.png 300w, https://xnzyh.com/wp-content/uploads/2025/10/image-768x302.png 768w, https://xnzyh.com/wp-content/uploads/2025/10/image-1536x603.png 1536w, https://xnzyh.com/wp-content/uploads/2025/10/image-2048x804.png 2048w, https://xnzyh.com/wp-content/uploads/2025/10/image-750x294.png 750w, https://xnzyh.com/wp-content/uploads/2025/10/image-1140x448.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<ol class="wp-block-list">
<li>左侧菜单点击【软件商店】。</li>



<li>搜索框输入“Linux 工具箱”。</li>



<li>找到插件后点击【安装】。安装通常在几秒到一两分钟内完成。</li>
</ol>



<h3 class="wp-block-heading">3. 在工具箱内修改 root 密码</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="556" src="https://xnzyh.com/wp-content/uploads/2025/10/image-1-1024x556.png" alt="" class="wp-image-419" srcset="https://xnzyh.com/wp-content/uploads/2025/10/image-1-1024x556.png 1024w, https://xnzyh.com/wp-content/uploads/2025/10/image-1-300x163.png 300w, https://xnzyh.com/wp-content/uploads/2025/10/image-1-768x417.png 768w, https://xnzyh.com/wp-content/uploads/2025/10/image-1-1536x834.png 1536w, https://xnzyh.com/wp-content/uploads/2025/10/image-1-750x407.png 750w, https://xnzyh.com/wp-content/uploads/2025/10/image-1-1140x619.png 1140w, https://xnzyh.com/wp-content/uploads/2025/10/image-1.png 1971w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<ol class="wp-block-list">
<li>安装完成后，进入【已安装】或在左侧找到【Linux 工具箱】。</li>



<li>打开工具箱页面，找到“修改 root 密码”或“修改管理员密码”区域。</li>



<li>在输入框输入新密码。建议使用强密码）。</li>



<li>点击【修改】按钮。面板会返回操作结果。</li>
</ol>



<h3 class="wp-block-heading">4. 验证密码是否生效</h3>



<p>在宝塔终端（左侧菜单 → 终端）输入：<code>su root</code>，回车后输入新密码，看是否能切换到 root。</p>



<p>用本地终端尝试 SSH 登录：<code>ssh root@服务器IP</code>，用新密码登录。</p>



<p>如果 SSH 登录失败，检查 <code>/etc/ssh/sshd_config</code> 中 <code>PasswordAuthentication</code> 的值，确保为 <code>yes</code>，然后重启 SSH 服务：</p>



<pre class="wp-block-code"><code>sudo sed -i 's/^#\?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo systemctl restart sshd
</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://xnzyh.com/417.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
