-
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
ciaranchen
committed
Apr 17, 2021
1 parent
54d5199
commit b2aaef9
Showing
118 changed files
with
0 additions
and
6,523 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +0,0 @@ | ||
<!DOCTYPE html><html lang="zh-Hans"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><meta content="yes" name="apple-mobile-web-app-capable"><meta content="black-translucent" name="apple-mobile-web-app-status-bar-style"><meta content="telephone=no" name="format-detection"><meta name="description" content="磐石之城、隐秘之地、守卫之塔、盛开在平原上的鲜花"><meta name="google-site-verification" content="DU00BSdC5IOwbveTccc7x394vyjxHZ0aGGfDSZ_l9yQ"><meta name="baidu-site-verification" content="UqSwzwDMCN"><title>Win和Mac上配置SSH | Ciaran's Gondolin</title><link rel="stylesheet" type="text/css" href="/css/style.css?v=0.0.1"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/normalize/8.0.0/normalize.min.css"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/pure/1.0.0/pure-min.css"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/pure/1.0.0/grids-responsive-min.css"><link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"><script type="text/javascript" src="//cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script><link rel="Shortcut Icon" type="image/x-icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="apple-touch-icon-precomposed" href="/apple-touch-icon.png"><link rel="alternate" type="application/atom+xml" href="/atom.xml"><script><!-- hexo-inject:begin --><!-- hexo-inject:end -->(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
ga('create','UA-125805814-1','auto');ga('send','pageview'); | ||
</script><script>var _hmt = _hmt || []; | ||
(function() { | ||
var hm = document.createElement("script"); | ||
hm.src = 'https://hm.baidu.com/hm.js?' + '264aaaa76ee702a5b65385936f19abeb'; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
</script><!-- hexo-inject:begin --><!-- hexo-inject:end --></head><body><div class="body_container"><div id="header"><div class="site-name"><h1 class="hidden">Win和Mac上配置SSH</h1><a id="logo" href="/.">Ciaran's Gondolin</a><p class="description">磐石之城、隐秘之地、守卫之塔、盛开在平原上的鲜花</p></div><div id="nav-menu"><a class="current" href="/."><i class="fa fa-home"> 首页</i></a><a href="/archives/"><i class="fa fa-archive"> 归档</i></a><a href="/about/"><i class="fa fa-user"> 关于</i></a><a href="/atom.xml"><i class="fa fa-rss"> 订阅</i></a></div></div><div class="pure-g" id="layout"><div class="pure-u-1 pure-u-md-3-4"><div class="content_container"><div class="post"><h1 class="post-title">Win和Mac上配置SSH</h1><div class="post-meta">May 15, 2017<span> | </span><span class="category"><a href="/categories/其它/">其它</a></span></div><div class="post-content"><h4 id="关于SSH:"><a href="#关于SSH:" class="headerlink" title="关于SSH:"></a>关于SSH:</h4><p>Secure Shell, 安全壳协议。专为远程登录和其他网络服务提供安全性的协议。</p> | ||
<!-- hexo-inject:begin --><!-- hexo-inject:end --><h2 id="Mac上的服务器配置"><a href="#Mac上的服务器配置" class="headerlink" title="Mac上的服务器配置"></a>Mac上的服务器配置</h2><p>系统偏好设置 -> 共享 -> 远程登录</p> | ||
<p>勾上“远程登录”这个选项即可</p> | ||
<h2 id="Win上的服务器配置"><a href="#Win上的服务器配置" class="headerlink" title="Win上的服务器配置"></a>Win上的服务器配置</h2><p>下载<a href="http://www.freesshd.com" target="_blank" rel="noopener">freeSSHd</a></p> | ||
<p>安装完成后进入Server Status界面(选项卡)。可见SSH在运行中,否则点击click here to start it<sup><a href="#fn_1" id="reffn_1">1</a></sup>。</p> | ||
<p>进入Users界面(选项卡)。添加一个用户,认证方式三选一:</p> | ||
<ul> | ||
<li>NT authentication NT认证</li> | ||
<li>Password stored as SHA1 hash 使用密码进行登录</li> | ||
<li>Public key(SSH only) 使用SSH公钥</li> | ||
</ul> | ||
<p>然后相应配置好之后。勾选Shell,确定。则已配置完成</p> | ||
<blockquote id="fn_1"> | ||
<sup>1</sup>. 如果点击仍无效果,请执行以下步骤:<a href="#reffn_1" title="Jump back to footnote [1] in the text."> ↩</a> | ||
</blockquote> | ||
<pre><code>1. 检查有否其他程序在使用端口22 | ||
netstat -ano | findstr "22" | ||
2. 找到使用此端口的程序名 | ||
tasklist | findstr "<上一步找到的进程号>" | ||
3. 中止此程序 | ||
</code></pre><h2 id="Mac上客户端的配置"><a href="#Mac上客户端的配置" class="headerlink" title="Mac上客户端的配置"></a>Mac上客户端的配置</h2><p>Mac自带ssh协议客户端<sup><a href="#fn_2" id="reffn_2">2</a></sup>。</p> | ||
<blockquote id="fn_2"> | ||
<sup>2</sup>. 如无则brew install ssh安装<a href="#reffn_2" title="Jump back to footnote [2] in the text."> ↩</a> | ||
</blockquote> | ||
<p>直接在终端使用</p> | ||
<pre><code>ssh <remote username>@<remote address> | ||
</code></pre><p>一般会问你是否信任该远程连接,然后是否加入缓冲区之类。然后输密码。</p> | ||
<h2 id="Win上客户端的配置"><a href="#Win上客户端的配置" class="headerlink" title="Win上客户端的配置"></a>Win上客户端的配置</h2><p>下载<a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank" rel="noopener">PuTTY</a>。</p> | ||
<blockquote> | ||
<p>上面的东西没什么大用</p> | ||
<p>主要是虽然主力机是Win,但是常背着Mac出到外面乱跑。有时总会有点尴尬就是明明电脑就背在书包里,但是场合或其他不可描述的原因不好拿出来。总之就觉得有点想希望电脑在包里不拿出来,但是希望在手机上面能直接使用电脑的一些命令(比如写好的脚本啥的)装个逼啥的。</p> | ||
<p>然后就找了一堆好像更没用的东西…放到这里期望某一天会有用起来</p> | ||
</blockquote> | ||
<h2 id="Mac合盖不休眠解决方案"><a href="#Mac合盖不休眠解决方案" class="headerlink" title="Mac合盖不休眠解决方案"></a>Mac合盖不休眠解决方案</h2><p>NoSleep</p> | ||
<p><a href="www.waerfa.com/nosleep">下载页面</a></p> | ||
<h2 id="Mac命令行调整网络"><a href="#Mac命令行调整网络" class="headerlink" title="Mac命令行调整网络"></a>Mac命令行调整网络</h2><p>查看网络设备名称</p> | ||
<pre><code>networksetup -listallhardwareports | ||
</code></pre><p>扫描可用wifi</p> | ||
<pre><code>/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan | ||
</code></pre><p>当然你可以在你的配置文件中加上alias使它更短一点。</p> | ||
<pre><code>alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport' | ||
</code></pre><p>加入wifi</p> | ||
<pre><code>networksetup -setairportnetwork <网络设备名> <WIFI SSID> <WIFI PASSWORD> | ||
</code></pre></div><div class="tags"><a href="/tags/web/">web</a></div><div class="post-nav"><a class="pre" href="/2017/05/31/傅里叶变换介绍/">傅里叶变换介绍</a></div></div></div></div><div class="pure-u-1 pure-u-md-1-4"><div id="sidebar"><div class="widget"><form class="search-form" action="//www.google.com/search" method="get" accept-charset="utf-8" target="_blank"><input type="text" name="q" maxlength="20" placeholder="Search"/><input type="hidden" name="sitesearch" value="http://blog.ciaran.cn"/></form></div><div class="widget"><div class="search-form"><input id="local-search-input" placeholder="Search" type="text" name="q" results="0"/><div id="local-search-result"></div></div></div><div class="widget"><div class="widget-title"><i class="fa fa-folder-o"> 分类</i></div><ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/人工智能/">人工智能</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/信息安全/">信息安全</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/其它/">其它</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/前端/">前端</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/后端/">后端</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/扯淡/">扯淡</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/操作系统/">操作系统</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/数学/">数学</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/未分类/">未分类</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/科学计算/">科学计算</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/编程语言/">编程语言</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/编译原理/">编译原理</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-star-o"> 标签</i></div><div class="tagcloud"><a href="/tags/代数/" style="font-size: 15px;">代数</a> <a href="/tags/Cygwin/" style="font-size: 15px;">Cygwin</a> <a href="/tags/CNN/" style="font-size: 15px;">CNN</a> <a href="/tags/Linux/" style="font-size: 15px;">Linux</a> <a href="/tags/Clojure/" style="font-size: 15px;">Clojure</a> <a href="/tags/bridge/" style="font-size: 15px;">bridge</a> <a href="/tags/NixOS/" style="font-size: 15px;">NixOS</a> <a href="/tags/闲谈/" style="font-size: 15px;">闲谈</a> <a href="/tags/大数据/" style="font-size: 15px;">大数据</a> <a href="/tags/python/" style="font-size: 15px;">python</a> <a href="/tags/lisp/" style="font-size: 15px;">lisp</a> <a href="/tags/source-code/" style="font-size: 15px;">source code</a> <a href="/tags/web/" style="font-size: 15px;">web</a> <a href="/tags/git/" style="font-size: 15px;">git</a> <a href="/tags/ipython/" style="font-size: 15px;">ipython</a> <a href="/tags/jupyter/" style="font-size: 15px;">jupyter</a> <a href="/tags/Java/" style="font-size: 15px;">Java</a> <a href="/tags/C-C/" style="font-size: 15px;">C/C++</a> <a href="/tags/LaTeX/" style="font-size: 15px;">LaTeX</a> <a href="/tags/配置/" style="font-size: 15px;">配置</a> <a href="/tags/hexo/" style="font-size: 15px;">hexo</a> <a href="/tags/翻译/" style="font-size: 15px;">翻译</a> <a href="/tags/assemble/" style="font-size: 15px;">assemble</a> <a href="/tags/水/" style="font-size: 15px;">水</a> <a href="/tags/sqlmap/" style="font-size: 15px;">sqlmap</a> <a href="/tags/数值计算/" style="font-size: 15px;">数值计算</a> <a href="/tags/OllyDbg/" style="font-size: 15px;">OllyDbg</a> <a href="/tags/Angular/" style="font-size: 15px;">Angular</a> <a href="/tags/typescript/" style="font-size: 15px;">typescript</a> <a href="/tags/Plotly/" style="font-size: 15px;">Plotly</a> <a href="/tags/CORS/" style="font-size: 15px;">CORS</a> <a href="/tags/古文/" style="font-size: 15px;">古文</a> <a href="/tags/算法/" style="font-size: 15px;">算法</a> <a href="/tags/数模/" style="font-size: 15px;">数模</a> <a href="/tags/Mirai/" style="font-size: 15px;">Mirai</a> <a href="/tags/scanner/" style="font-size: 15px;">scanner</a></div></div><div class="widget"><div class="widget-title"><i class="fa fa-file-o"> 最近文章</i></div><ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2020/11/18/恢复更新博客/">恢复更新博客</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/11/23/NixOS配置网桥/">NixOS 配置网桥</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/02/28/子不道父之过出处考/">子不道父之过出处考</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/11/13/简单sqlmap注入/">简单sqlmap注入</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/11/13/简单缓冲区溢出/">简单缓冲区溢出</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/11/05/Angular使用Plotly记录/">Angular使用Plotly记录</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/10/09/Mirai源码阅读/">Mirai源码阅读</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/09/28/Angular跨域访问豆瓣API/">Angular跨域访问豆瓣API</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/09/16/ipython安装特定版本kernel/">ipython安装特定版本kernel</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/09/15/敏感性分析/">敏感性分析</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-external-link"> 友情链接</i></div><ul></ul><a href="https://de_licious.gitlab.io/physics_math_fun/" title="de_licious" target="_blank" rel="external nofollow">de_licious</a><ul></ul><a href="http://www.saberismywife.com/" title="SaberDa" target="_blank" rel="external nofollow">SaberDa</a><ul></ul><a href="http://www.stephenzhang.me/" title="StephenZhang" target="_blank" rel="external nofollow">StephenZhang</a><ul></ul><a href="http://blog.boileryao.com/" title="Boiler Yao" target="_blank" rel="external nofollow">Boiler Yao</a><ul></ul><a href="http://hilvcha.github.io/" title="Hilvcha" target="_blank" rel="external nofollow">Hilvcha</a></div></div></div><div class="pure-u-1 pure-u-md-3-4"><div id="footer">Copyright © 2020 <a href="/." rel="nofollow">Ciaran's Gondolin.</a> Powered by<a rel="nofollow" target="_blank" href="https://hexo.io"> Hexo.</a><a rel="nofollow" target="_blank" href="https://github.com/tufu9441/maupassant-hexo"> Theme</a> by<a rel="nofollow" target="_blank" href="https://github.com/pagecho"> Cho. </a><a rel="nofollow" target="_blank" href="http://www.miitbeian.gov.cn">陕ICP备17013427号</a></div></div></div><a class="show" id="rocket" href="#top"></a><script type="text/javascript" src="/js/totop.js?v=0.0.1" async></script><script type="text/javascript" src="//cdn.bootcss.com/fancybox/3.2.5/jquery.fancybox.min.js" async></script><script type="text/javascript" src="/js/fancybox.js?v=0.0.1" async></script><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/fancybox/3.2.5/jquery.fancybox.min.css"><script type="text/javascript" src="/js/search.js?v=0.0.1"></script><script>var search_path = 'search.xml'; | ||
if (search_path.length == 0) { | ||
search_path = 'search.xml'; | ||
} | ||
var path = '/' + search_path; | ||
searchFunc(path, 'local-search-input', 'local-search-result'); | ||
</script><script type="text/javascript" src="/js/codeblock-resizer.js?v=0.0.1"></script><script type="text/javascript" src="/js/smartresize.js?v=0.0.1"></script></div><!-- hexo-inject:begin --><!-- hexo-inject:end --></body></html> | ||
Oops, something went wrong.