From 6896b017b63ed90b8a66800e59b5303085b0cb0f Mon Sep 17 00:00:00 2001 From: kennethXia <37970750+kennethXia@users.noreply.github.com> Date: Sat, 7 Apr 2018 14:36:44 +0800 Subject: [PATCH 1/6] Translating by kennethXia --- sources/tech/20180402 Advanced SSH Cheat Sheet.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/tech/20180402 Advanced SSH Cheat Sheet.md b/sources/tech/20180402 Advanced SSH Cheat Sheet.md index 51cb79e741..d5cd25dcea 100644 --- a/sources/tech/20180402 Advanced SSH Cheat Sheet.md +++ b/sources/tech/20180402 Advanced SSH Cheat Sheet.md @@ -1,3 +1,5 @@ +Translating by KennethXia + Opensource.com: Advanced SSH Cheat Sheet =========================== From c61fd63251e15d3028eb0811f675019c75d61855 Mon Sep 17 00:00:00 2001 From: kennethXia <37970750+kennethXia@users.noreply.github.com> Date: Sat, 7 Apr 2018 15:44:24 +0800 Subject: [PATCH 2/6] Update 20180402 Advanced SSH Cheat Sheet.md --- .../tech/20180402 Advanced SSH Cheat Sheet.md | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/sources/tech/20180402 Advanced SSH Cheat Sheet.md b/sources/tech/20180402 Advanced SSH Cheat Sheet.md index d5cd25dcea..6e304c5ac6 100644 --- a/sources/tech/20180402 Advanced SSH Cheat Sheet.md +++ b/sources/tech/20180402 Advanced SSH Cheat Sheet.md @@ -1,54 +1,56 @@ Translating by KennethXia -Opensource.com: Advanced SSH Cheat Sheet +Opensource.com: 高级 SSH 用法表 =========================== +所有人都知道 SSH 是一种远程登录工具,但它也有多种其他用途。 Most people know SSH as a tool for remote login, which it is, but it can be used in many other ways. ``` -Create a SOCKS proxy to tunnel your web traffic (like when you’re traveling) -ssh -D -Set your web browser to use localhost: as the proxy. +创建一个 SOCKS 代理来浏览网页(也就是翻墙啦) +ssh -D +设置 localhost: 作为你浏览器的代理 +连接一个躲在防御服务器背后的 Windows RDP 主机 Connect to a Windows RDP host behind a bastion server ssh -L ::3389 +让你的 RDP 客户端连接到 localhost: Set your RDP client to connect to localhost: -Connect to your remote machine’s VNC server without opening the VNC port +在不使用 VNC 端口的情况下,连接远程 VNC 主机 ssh -L 5901:localhost:5901 -Set your VNC client to to connect to localhost:5901 -You can follow this pattern with other ports you don’t want to open to the world: LDAP (389), 631 (CUPS), 8080 (alternate HTTP), and so on. +让你的 VNC 客户端连接到 localhost:5901 +按照这个思路,你可以映射任意端口: LDAP (389), 631 (CUPS), 8080 (alternate HTTP),等等 -Generate a new SSH key pair +产生一个新的 SSH 密钥对 ssh-keygen -Update the passphrase on an existing SSH key-pair +更新密钥对的密码 ssh-keygen -p -Copy a public SSH key to a remote host +把公钥复制到远程主机上 ssh-copy-id -i -SSH has a lot of command-line options, but if you use the same options for a host regularly, you can put an entry in the SSH configuration file (${HOME}/.ssh/config) instead. For example: +SSH 有一堆命令行选项,但是如果有一些是你经常使用的,你可以为他们在 SSH 配置文件 (${HOME}/.ssh/config) 里创建一个入口。比如: host myhouse User itsme - HostName house.example.com -Then you can type ssh myhouse instead of ssh itsme@house.example.com. +    HostName house.example.com +那么你就可以输入 ssh myhouse 来代替 ssh itsme@house.example.com. ``` -Here are common command-line options and their configuration file equivalents. Some are simplified for common use cases. See the ssh(1) and ssh_config(5) manual pages for full details. - +以下是常用的命令行选项和他们的配置文件写法。一些是常用的简化写法。请查看 ssh(1) 和 ssh_config(5) 的手册页来获取详尽信息。 |Command Line| Configuration File|Description |:--|:--|:--| -|-l \| User \The login name on the remote machine. -|-i \ |IdentityFile \ |The identity file (SSH keypair) to use for authentication. | -|-p \| Port \|The port on which the remote SSH daemon is listening. (default: 22) | -|-C|Compression \|Compress traffic between hosts. (default: no) | -|-D \|DynamicForward \|Forward traffic on the local port to the remote machine. | -|-X|ForwardX11 \|Display X11 graphical programs from your remote host on the local host. (default: no) | -|-A|ForwardAgent \|Forward the authentication agent to the remote host. This is helpful if you’ll then connect to a third host. (default: no) | -|-4 (use IPv4 only) -6 (use IPv6 only)|AddressFamily \ |Specify whether to use IPv4 or IPv6 only. | -|-L \:\:\ |LocalForward \:\:\ |Forward local traffic on the specified to port to the remote host and port. | +|-l \| User \|远程主机的登录用户名。| +|-i \ |IdentityFile \ |指定要使用的鉴权文件(SSH 密码对)。 | +|-p \| Port \|远程 SSH 守护进程监听的端口号。 (默认为 22) | +|-C|Compression \|压缩往来信息。 (默认为 no) | +|-D \|DynamicForward \|把本地端口的报文转发到远程主机。 | +|-X|ForwardX11 \|把 X11 的图像数据转发到远程主机的端口. (默认为 no) | +|-A|ForwardAgent \|把授权代理的报文转发给远程主机。如果你使用第三方主机登录,这个功能将很有用。 (默认为 no) | +|-4 (use IPv4 only) -6 (use IPv6 only)|AddressFamily \ |指定仅使用 IPv4 或者 IPv6. | +|-L \:\:\ |LocalForward \:\:\ |把本地主机指定端口的报文转发到远程主机的某个端口。| opensource.com From bc4f706df79071ba9a1f0747856a15d9a36fd768 Mon Sep 17 00:00:00 2001 From: kennethXia <37970750+kennethXia@users.noreply.github.com> Date: Sat, 7 Apr 2018 16:35:24 +0800 Subject: [PATCH 3/6] Update and rename sources/tech/20180402 Advanced SSH Cheat Sheet.md to translated/tech/20180402 Advanced SSH Cheat Sheet.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 翻译完成 --- .../tech/20180402 Advanced SSH Cheat Sheet.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) rename {sources => translated}/tech/20180402 Advanced SSH Cheat Sheet.md (71%) diff --git a/sources/tech/20180402 Advanced SSH Cheat Sheet.md b/translated/tech/20180402 Advanced SSH Cheat Sheet.md similarity index 71% rename from sources/tech/20180402 Advanced SSH Cheat Sheet.md rename to translated/tech/20180402 Advanced SSH Cheat Sheet.md index 6e304c5ac6..78ba5c12d9 100644 --- a/sources/tech/20180402 Advanced SSH Cheat Sheet.md +++ b/translated/tech/20180402 Advanced SSH Cheat Sheet.md @@ -3,44 +3,41 @@ Translating by KennethXia Opensource.com: 高级 SSH 用法表 =========================== -所有人都知道 SSH 是一种远程登录工具,但它也有多种其他用途。 -Most people know SSH as a tool for remote login, which it is, but it can be used in many other ways. +所有人都知道 SSH 是一种远程登录工具,然而它也有许多其他用途。 ``` -创建一个 SOCKS 代理来浏览网页(也就是翻墙啦) +创建一个 SOCKS 代理来浏览网页(也就是翻墙啦): ssh -D 设置 localhost: 作为你浏览器的代理 -连接一个躲在防御服务器背后的 Windows RDP 主机 -Connect to a Windows RDP host behind a bastion server +连接一个躲在防御服务器背后的 Windows RDP 主机: ssh -L ::3389 让你的 RDP 客户端连接到 localhost: -Set your RDP client to connect to localhost: -在不使用 VNC 端口的情况下,连接远程 VNC 主机 +在不使用 VNC 端口的情况下,连接远程 VNC 主机: ssh -L 5901:localhost:5901 让你的 VNC 客户端连接到 localhost:5901 -按照这个思路,你可以映射任意端口: LDAP (389), 631 (CUPS), 8080 (alternate HTTP),等等 +按照这个思路,你可以映射任意端口: LDAP (389), 631 (CUPS), 8080 (alternate HTTP),等等。 -产生一个新的 SSH 密钥对 +产生一个新的 SSH 密钥对: ssh-keygen -更新密钥对的密码 +更新密钥对的密码: ssh-keygen -p -把公钥复制到远程主机上 +把公钥复制到远程主机上: ssh-copy-id -i SSH 有一堆命令行选项,但是如果有一些是你经常使用的,你可以为他们在 SSH 配置文件 (${HOME}/.ssh/config) 里创建一个入口。比如: host myhouse User itsme    HostName house.example.com -那么你就可以输入 ssh myhouse 来代替 ssh itsme@house.example.com. +那么你就可以输入 'ssh myhouse' 来代替 'ssh itsme@house.example.com'. ``` 以下是常用的命令行选项和他们的配置文件写法。一些是常用的简化写法。请查看 ssh(1) 和 ssh_config(5) 的手册页来获取详尽信息。 -|Command Line| Configuration File|Description +|命令行|配置文件|描述 |:--|:--|:--| |-l \| User \|远程主机的登录用户名。| |-i \ |IdentityFile \ |指定要使用的鉴权文件(SSH 密码对)。 | @@ -62,14 +59,14 @@ Twitter @opensourceway | facebook.com/opensourceway | IRC: #opensource.com o 作者简介: -Ben Cotton is a meteorologist by training and a high-performance computing engineer by trade. Ben works as a product marketing manger at Microsoft Azure focused on high performance computing. He is a Fedora user and contributor, co-founded a local open source meetup group, and is a member of the Open Source Initiative and a supporter of Software Freedom Conservancy. Find him on Twitter (@FunnelFiasco) or at FunnelFiasco.com. +Ben Cotton是业余气象学家和专业高性能计算工程师。Ben 是微软 Azure 的产品营销经理,专注于高性能计算。他是一个Fedora用户和贡献者,共同创立了一个当地的开放源码群,并且是开源促进会的成员和保护自由软件的支持者。通过以下方式联系他 Twitter (@FunnelFiasco) 或者 FunnelFiasco.com. ------------- via: https://opensource.com/sites/default/files/gated-content/cheat_sheet_ssh_v03.pdf 作者:[ BEN COTTON ][a] -译者:[译者ID](https://github.com/译者ID) +译者:[kennethXia](https://github.com/kennethXia) 校对:[校对者ID](https://github.com/校对者ID) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 From 02bd98b89966cd3a6a5106607727f45500c26ae7 Mon Sep 17 00:00:00 2001 From: kennethXia <37970750+kennethXia@users.noreply.github.com> Date: Sat, 7 Apr 2018 16:35:48 +0800 Subject: [PATCH 4/6] Update 20180402 Advanced SSH Cheat Sheet.md --- translated/tech/20180402 Advanced SSH Cheat Sheet.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/translated/tech/20180402 Advanced SSH Cheat Sheet.md b/translated/tech/20180402 Advanced SSH Cheat Sheet.md index 78ba5c12d9..31af6d3875 100644 --- a/translated/tech/20180402 Advanced SSH Cheat Sheet.md +++ b/translated/tech/20180402 Advanced SSH Cheat Sheet.md @@ -1,5 +1,3 @@ -Translating by KennethXia - Opensource.com: 高级 SSH 用法表 =========================== From 523ed420025088a728f297193d416f47c6b5bcfe Mon Sep 17 00:00:00 2001 From: kennethXia <37970750+kennethXia@users.noreply.github.com> Date: Sat, 7 Apr 2018 16:40:42 +0800 Subject: [PATCH 5/6] translated by kennethXia --- translated/tech/20180402 Advanced SSH Cheat Sheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translated/tech/20180402 Advanced SSH Cheat Sheet.md b/translated/tech/20180402 Advanced SSH Cheat Sheet.md index 31af6d3875..f24286c92d 100644 --- a/translated/tech/20180402 Advanced SSH Cheat Sheet.md +++ b/translated/tech/20180402 Advanced SSH Cheat Sheet.md @@ -57,7 +57,7 @@ Twitter @opensourceway | facebook.com/opensourceway | IRC: #opensource.com o 作者简介: -Ben Cotton是业余气象学家和专业高性能计算工程师。Ben 是微软 Azure 的产品营销经理,专注于高性能计算。他是一个Fedora用户和贡献者,共同创立了一个当地的开放源码群,并且是开源促进会的成员和保护自由软件的支持者。通过以下方式联系他 Twitter (@FunnelFiasco) 或者 FunnelFiasco.com. +Ben Cotton是业余的气象学家和职业的高性能计算工程师。Ben 是微软 Azure 的产品营销经理,专注于高性能计算。他是一个 Fedora 用户和贡献者,共同创立了一个当地的开放源码群,并且是开源促进会的成员和保护自由软件的支持者。通过以下方式联系他 Twitter (@FunnelFiasco) 或者 FunnelFiasco.com. ------------- From ac631ed535119878f3a23615bfd2b99876279d00 Mon Sep 17 00:00:00 2001 From: kennethXia <37970750+kennethXia@users.noreply.github.com> Date: Sat, 7 Apr 2018 17:11:11 +0800 Subject: [PATCH 6/6] translating by kennethXia --- sources/talk/20180226 5 keys to building open hardware.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/talk/20180226 5 keys to building open hardware.md b/sources/talk/20180226 5 keys to building open hardware.md index 7819149996..fbeb1c0460 100644 --- a/sources/talk/20180226 5 keys to building open hardware.md +++ b/sources/talk/20180226 5 keys to building open hardware.md @@ -1,3 +1,5 @@ +translating by kennethXia + 5 keys to building open hardware ====== ![](https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/openhardwaretools.png?itok=DC1RC_1f)