Skip to content

Commit

Permalink
Site updated: 2023-11-25 16:54:30
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaibineric committed Nov 25, 2023
1 parent 5181830 commit 44423ae
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 25 deletions.
4 changes: 2 additions & 2 deletions 2023/10/22/conda_list/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ <h3 id="镜像源安装">镜像源安装</h3>
<article class="post-next col-6">


<a href="/2023/10/22/vscode-remote/" title="【基础工具】VScode远程和免密">
<span class="hidden-mobile">【基础工具】VScode远程和免密</span>
<a href="/2023/10/22/vscode-remote/" title="【基础工具】VScode远程和免密配置">
<span class="hidden-mobile">【基础工具】VScode远程和免密配置</span>
<span class="visible-mobile">Next</span>
<i class="iconfont icon-arrowright"></i>
</a>
Expand Down
4 changes: 2 additions & 2 deletions 2023/10/22/pytorch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ <h3 id="计算梯度例子">计算梯度例子</h3>
<article class="post-prev col-6">


<a href="/2023/10/22/vscode-remote/" title="【基础工具】VScode远程和免密">
<a href="/2023/10/22/vscode-remote/" title="【基础工具】VScode远程和免密配置">
<i class="iconfont icon-arrowleft"></i>
<span class="hidden-mobile">【基础工具】VScode远程和免密</span>
<span class="hidden-mobile">【基础工具】VScode远程和免密配置</span>
<span class="visible-mobile">Previous</span>
</a>

Expand Down
47 changes: 38 additions & 9 deletions 2023/10/22/vscode-remote/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,25 @@
<meta name="author" content="Haibin Li">
<meta name="keywords" content="">

<meta property="og:type" content="article">
<meta property="og:title" content="【基础工具】VScode远程和免密">
<meta name="description" content="VSCode远程连接与免密配置 VSCode远程连接 在vscode中安装remote-ssh的插件 加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:&#x3D;&#x3D;ssh [email protected]&#x3D;&#x3D; 而后选择包含.ssh的文件夹位置,需要注意的是在&#x3D;&#x3D;remote-ssh的配置文件中需要的文件夹位置&#x3D;&#x3D; &#x2F;users&#x2F;user&#x2F;.ssh&#x2F;config 远程连接免密配置 电脑端">
<meta property="og:type" content="article">
<meta property="og:title" content="【基础工具】VScode远程和免密配置">
<meta property="og:url" content="https://lihaibineric.github.io/2023/10/22/vscode-remote/index.html">
<meta property="og:site_name" content="LIHAIBIN&#39;S BLOG">
<meta property="og:description" content="VSCode远程连接与免密配置 VSCode远程连接 在vscode中安装remote-ssh的插件 加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:&#x3D;&#x3D;ssh [email protected]&#x3D;&#x3D; 而后选择包含.ssh的文件夹位置,需要注意的是在&#x3D;&#x3D;remote-ssh的配置文件中需要的文件夹位置&#x3D;&#x3D; &#x2F;users&#x2F;user&#x2F;.ssh&#x2F;config 远程连接免密配置 电脑端">
<meta property="og:locale" content="en_US">
<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:37:27.443Z">
<meta property="article:modified_time" content="2023-11-25T08:54:18.637Z">
<meta property="article:author" content="Haibin Li">
<meta property="article:tag" content="基础工具">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231125164427793.png">



<title>【基础工具】VScode远程和免密 - LIHAIBIN&#39;S BLOG</title>
<title>【基础工具】VScode远程和免密配置 - LIHAIBIN&#39;S BLOG</title>

<link rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />

Expand Down Expand Up @@ -183,7 +188,7 @@
<div class="banner-text text-center fade-in-up">
<div class="h2">

<span id="subtitle" data-typed-text="【基础工具】VScode远程和免密"></span>
<span id="subtitle" data-typed-text="【基础工具】VScode远程和免密配置"></span>

</div>

Expand All @@ -206,7 +211,7 @@
<span class="post-meta mr-2">
<i class="iconfont icon-chart"></i>

0 words
431 words

</span>

Expand All @@ -217,7 +222,7 @@



1 mins
4 mins

</span>

Expand Down Expand Up @@ -254,12 +259,36 @@
<div class="container nopadding-x-md" id="board-ctn">
<div id="board">
<article class="post-content mx-auto">
<h1 id="seo-header">【基础工具】VScode远程和免密</h1>
<h1 id="seo-header">【基础工具】VScode远程和免密配置</h1>


<div class="markdown-body">

<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" srcset="/img/loading.gif" lazyload alt="添加插件示意图" style="zoom:67%;" /></p>
<p>加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:==ssh
[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" srcset="/img/loading.gif" lazyload 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>


</div>
Expand Down Expand Up @@ -305,7 +334,7 @@ <h1 id="seo-header">【基础工具】VScode远程和免密</h1>

<div class="license-box my-3">
<div class="license-title">
<div>【基础工具】VScode远程和免密</div>
<div>【基础工具】VScode远程和免密配置</div>
<div>https://lihaibineric.github.io/2023/10/22/vscode-remote/</div>
</div>
<div class="license-meta">
Expand Down
2 changes: 1 addition & 1 deletion archives/2023/10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@

<a href="/2023/10/22/vscode-remote/" class="list-group-item list-group-item-action">
<time>10-22</time>
<div class="list-group-item-title">【基础工具】VScode远程和免密</div>
<div class="list-group-item-title">【基础工具】VScode远程和免密配置</div>
</a>


Expand Down
2 changes: 1 addition & 1 deletion archives/2023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@

<a href="/2023/10/22/vscode-remote/" class="list-group-item list-group-item-action">
<time>10-22</time>
<div class="list-group-item-title">【基础工具】VScode远程和免密</div>
<div class="list-group-item-title">【基础工具】VScode远程和免密配置</div>
</a>


Expand Down
2 changes: 1 addition & 1 deletion archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@

<a href="/2023/10/22/vscode-remote/" class="list-group-item list-group-item-action">
<time>10-22</time>
<div class="list-group-item-title">【基础工具】VScode远程和免密</div>
<div class="list-group-item-title">【基础工具】VScode远程和免密配置</div>
</a>


Expand Down
4 changes: 2 additions & 2 deletions categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@



<a href="/2023/10/22/vscode-remote/" title="【基础工具】VScode远程和免密"
<a href="/2023/10/22/vscode-remote/" title="【基础工具】VScode远程和免密配置"
class="list-group-item list-group-item-action
">
<span class="category-post">【基础工具】VScode远程和免密</span>
<span class="category-post">【基础工具】VScode远程和免密配置</span>
</a>


Expand Down
2 changes: 1 addition & 1 deletion categories/基础工具/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@

<a href="/2023/10/22/vscode-remote/" class="list-group-item list-group-item-action">
<time>10-22</time>
<div class="list-group-item-title">【基础工具】VScode远程和免密</div>
<div class="list-group-item-title">【基础工具】VScode远程和免密配置</div>
</a>

</div>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,14 @@ <h2 class="index-header">
<h2 class="index-header">

<a href="/2023/10/22/vscode-remote/" target="_self">
【基础工具】VScode远程和免密
【基础工具】VScode远程和免密配置
</a>
</h2>


<a class="index-excerpt index-excerpt__noimg" href="/2023/10/22/vscode-remote/" target="_self">
<div>

VSCode远程连接与免密配置 VSCode远程连接 在vscode中安装remote-ssh的插件 加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:==ssh [email protected]== 而后选择包含.ssh的文件夹位置,需要注意的是在==remote-ssh的配置文件中需要的文件夹位置== /users/user/.ssh/config 远程连接免密配置 电脑端
</div>
</a>

Expand Down
4 changes: 2 additions & 2 deletions local-search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@


<entry>
<title>【基础工具】VScode远程和免密</title>
<title>【基础工具】VScode远程和免密配置</title>
<link href="/2023/10/22/vscode-remote/"/>
<url>/2023/10/22/vscode-remote/</url>

<content type="html"><![CDATA[<meta name="referrer" content="no-referrer"/>]]></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>]]></content>


<categories>
Expand Down
26 changes: 25 additions & 1 deletion search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,33 @@ https://pypi.tuna.tsinghua.edu.cn/simple</strong></p>
</tags>
</entry>
<entry>
<title>【基础工具】VScode远程和免密</title>
<title>【基础工具】VScode远程和免密配置</title>
<url>/2023/10/22/vscode-remote/</url>
<content><![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地址与名称:==ssh
[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="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="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>
<categories>
<category>基础工具</category>
Expand Down
2 changes: 1 addition & 1 deletion tags/基础工具/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@

<a href="/2023/10/22/vscode-remote/" class="list-group-item list-group-item-action">
<time>10-22</time>
<div class="list-group-item-title">【基础工具】VScode远程和免密</div>
<div class="list-group-item-title">【基础工具】VScode远程和免密配置</div>
</a>

</div>
Expand Down

0 comments on commit 44423ae

Please sign in to comment.