update some content

This commit is contained in:
2021-10-28 14:15:01 +08:00
parent b8600ab259
commit 27b5a11382
163 changed files with 951 additions and 922 deletions

View File

@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1635401692" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1635401692" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -310,9 +310,9 @@ if (!doNotTrack) {
<p>早上研究了一下,順便做個筆記。</p>
<h3 id="1-ssh-要加上--x">1. ssh 要加上 -X</h3>
<p>不然會出現</p>
<pre tabindex="0"><code>Error: Can't open display: (null)
<pre><code>Error: Can't open display: (null)
</code></pre><p>這種錯誤訊息</p>
<pre tabindex="0"><code>-X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file.
<pre><code>-X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file.
X11 forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the user's X
authorization database) can access the local X11 display through the forwarded connection. An attacker may then be able to perform activi
@@ -321,7 +321,7 @@ if (!doNotTrack) {
For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions by default. Please refer to the ssh -Y option and the
ForwardX11Trusted directive in ssh_config(5) for more information.
</code></pre><h3 id="2-remote-主機要安裝-xclip--xsel">2. remote 主機要安裝 xclip / xsel</h3>
<pre tabindex="0"><code>2019-05-17 10:12:20 [minion@hqs019 ~]$ sudo apt install xsel
<pre><code>2019-05-17 10:12:20 [minion@hqs019 ~]$ sudo apt install xsel
Reading package lists... Done
Building dependency tree
Reading state information... Done
@@ -358,7 +358,7 @@ Setting up xclip (0.12+svn84-4build1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
</code></pre><h3 id="3執行方式">3.執行方式</h3>
<p>執行以下指令,就可以把遠端的檔案內容傳送到「系統剪貼簿」,在本機就可以直接貼上了</p>
<pre tabindex="0"><code>cat copy_neonexus.csv |xclip -selection clipboard
<pre><code>cat copy_neonexus.csv |xclip -selection clipboard
</code></pre>
</article>
</div>
@@ -646,7 +646,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1635401692"></script>
</body>
</html>