<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>VPS on Net Boy</title>
    <link>https://lian.st/categories/vps/</link>
    <description>Recent content in VPS on Net Boy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Thu, 01 Aug 2024 20:35:09 +0800</lastBuildDate><atom:link href="https://lian.st/categories/vps/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Reset Linux User Password on Google Cloud Computer</title>
      <link>https://lian.st/posts/reset-linux-user-password-on-google-cloud-computer/</link>
      <pubDate>Thu, 01 Aug 2024 20:35:09 +0800</pubDate>
      
      <guid>https://lian.st/posts/reset-linux-user-password-on-google-cloud-computer/</guid>
      
      <description>&lt;p&gt;if your root password is fotget,You can reset it using the following method .&lt;/p&gt;
&lt;h1 id=&#34;description&#34;&gt;Description&lt;/h1&gt;
&lt;h2 id=&#34;environment&#34;&gt;Environment&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;GCP security group allows 0.0.0.0/0 to access the SSH port;&lt;/li&gt;
&lt;li&gt;In the operating system, Firewall-cmd specifies the IP that can access the SSH port&lt;/li&gt;
&lt;li&gt;In the operating system, /etc/hosts.deny and /etc/hosts.allow are set&lt;/li&gt;
&lt;li&gt;Disable root user login&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;failure&#34;&gt;Failure&lt;/h2&gt;
&lt;p&gt;For some reason, all user passwords are lost and need to be reset.&lt;/p&gt;
&lt;h1 id=&#34;solution&#34;&gt;Solution&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;you need to shut down(Stop) the server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img alt=&#34;gcp-reset-linux-user-password-stop.png&#34; src=&#34;https://b2.ccc.re/2024/08/01/gcp-reset-linux-user-password-stop.png&#34;&gt;&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
