Skip to content

Commit

Permalink
Site updated: 2023-11-25 17:05:09
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaibineric committed Nov 25, 2023
1 parent 44423ae commit 9b076cd
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 220 deletions.
9 changes: 7 additions & 2 deletions 2023/10/22/vscode-remote/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<meta property="og:image" content="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164427793.png">
<meta property="og:image" content="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164542420.png">
<meta property="article:published_time" content="2023-10-22T13:54:41.000Z">
<meta property="article:modified_time" content="2023-11-25T08:54:18.637Z">
<meta property="article:modified_time" content="2023-11-25T09:04:52.930Z">
<meta property="article:author" content="Haibin Li">
<meta property="article:tag" content="基础工具">
<meta name="twitter:card" content="summary_large_image">
Expand Down Expand Up @@ -211,7 +211,7 @@
<span class="post-meta mr-2">
<i class="iconfont icon-chart"></i>

431 words
468 words

</span>

Expand Down Expand Up @@ -289,6 +289,11 @@ <h6 id="服务器端">服务器端</h6>
<li><p>在.ssh中新建<strong>authorized_keys文件</strong></p></li>
<li><p>将复制的<strong>id_rsa.pub</strong>中的文件内容黏贴到<strong>authorized_keys文件</strong>中即可完成</p></li>
</ol>
<h4 id="section"></h4>
<h4 id="登陆密码更改">登陆密码更改</h4>
<p>在终端中输入</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">passwd<br></code></pre></td></tr></table></figure>
<p>按照指引输入一次原来的密码和新的密码</p>


</div>
Expand Down
2 changes: 1 addition & 1 deletion local-search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<link href="/2023/10/22/vscode-remote/"/>
<url>/2023/10/22/vscode-remote/</url>

<content type="html"><![CDATA[<meta name="referrer" content="no-referrer"/><h2 id="vscode远程连接与免密配置">VSCode远程连接与免密配置</h2><h4 id="vscode远程连接">VSCode远程连接</h4><p>在vscode中安装remote-ssh的插件</p><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164427793.png" alt="添加插件示意图" style="zoom:67%;" /></p><p>加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:[email protected]==</p><p>而后选择包含.ssh的文件夹位置,需要注意的是在==remote-ssh的配置文件中需要的文件夹位置==<strong>/users/user/.ssh/config</strong></p><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164542420.png" alt="Remote插件配置设置" style="zoom:67%;" /></p><h4 id="远程连接免密配置">远程连接免密配置</h4><h6 id="电脑端"><strong>电脑端</strong></h6><ol type="1"><li><p>生成本地<strong>私钥id_rsa,公钥id_rsa.pub</strong>文件,输入以下</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh-keygen -t rsa -b 4096 <br></code></pre></td></tr></table></figure><p>然后一路回车会在电脑用户目录下的.ssh生成上述的文件,并进入复制<strong>id_rsa.pub</strong>中的文件内容</p></li><li><p>如果已经存在,那么只需要进入上述的.ssh文件中复制即可</p></li></ol><h6 id="服务器端">服务器端</h6><ol type="1"><li><p>进入服务器端的用户名路径下的.ssh文件中,如果没有执行</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">mkdir</span> .ssh<br></code></pre></td></tr></table></figure></li><li><p>在.ssh中新建<strong>authorized_keys文件</strong></p></li><li><p>将复制的<strong>id_rsa.pub</strong>中的文件内容黏贴到<strong>authorized_keys文件</strong>中即可完成</p></li></ol>]]></content>
<content type="html"><![CDATA[<meta name="referrer" content="no-referrer"/><h2 id="vscode远程连接与免密配置">VSCode远程连接与免密配置</h2><h4 id="vscode远程连接">VSCode远程连接</h4><p>在vscode中安装remote-ssh的插件</p><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164427793.png" alt="添加插件示意图" style="zoom:67%;" /></p><p>加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:[email protected]==</p><p>而后选择包含.ssh的文件夹位置,需要注意的是在==remote-ssh的配置文件中需要的文件夹位置==<strong>/users/user/.ssh/config</strong></p><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164542420.png" alt="Remote插件配置设置" style="zoom:67%;" /></p><h4 id="远程连接免密配置">远程连接免密配置</h4><h6 id="电脑端"><strong>电脑端</strong></h6><ol type="1"><li><p>生成本地<strong>私钥id_rsa,公钥id_rsa.pub</strong>文件,输入以下</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh-keygen -t rsa -b 4096 <br></code></pre></td></tr></table></figure><p>然后一路回车会在电脑用户目录下的.ssh生成上述的文件,并进入复制<strong>id_rsa.pub</strong>中的文件内容</p></li><li><p>如果已经存在,那么只需要进入上述的.ssh文件中复制即可</p></li></ol><h6 id="服务器端">服务器端</h6><ol type="1"><li><p>进入服务器端的用户名路径下的.ssh文件中,如果没有执行</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">mkdir</span> .ssh<br></code></pre></td></tr></table></figure></li><li><p>在.ssh中新建<strong>authorized_keys文件</strong></p></li><li><p>将复制的<strong>id_rsa.pub</strong>中的文件内容黏贴到<strong>authorized_keys文件</strong>中即可完成</p></li></ol><h4 id="section"></h4><h4 id="登陆密码更改">登陆密码更改</h4><p>在终端中输入</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">passwd<br></code></pre></td></tr></table></figure><p>按照指引输入一次原来的密码和新的密码</p>]]></content>


<categories>
Expand Down
Loading

0 comments on commit 9b076cd

Please sign in to comment.