-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5181830
commit 44423ae
Showing
12 changed files
with
78 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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地址与名称:==ssh [email protected]== 而后选择包含.ssh的文件夹位置,需要注意的是在==remote-ssh的配置文件中需要的文件夹位置== /users/user/.ssh/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'S BLOG"> | ||
<meta property="og:description" content="VSCode远程连接与免密配置 VSCode远程连接 在vscode中安装remote-ssh的插件 加号的位置点击后在右侧框中输入远程服务器的ip地址与名称:==ssh [email protected]== 而后选择包含.ssh的文件夹位置,需要注意的是在==remote-ssh的配置文件中需要的文件夹位置== /users/user/.ssh/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'S BLOG</title> | ||
<title>【基础工具】VScode远程和免密配置 - LIHAIBIN'S BLOG</title> | ||
|
||
<link rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" /> | ||
|
||
|
@@ -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> | ||
|
||
|
@@ -206,7 +211,7 @@ | |
<span class="post-meta mr-2"> | ||
<i class="iconfont icon-chart"></i> | ||
|
||
0 words | ||
431 words | ||
|
||
</span> | ||
|
||
|
@@ -217,7 +222,7 @@ | |
|
||
|
||
|
||
1 mins | ||
4 mins | ||
|
||
</span> | ||
|
||
|
@@ -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> | ||
|
@@ -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"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters