Ubuntu 简明教程
Ubuntu - Secure Shell
Linux 中的 Secure Shell (SSH) 用于以加密和安全的方式登录到计算机。这有助于提供一个安全通道,以简化对 Ubuntu 服务器的所有请求。SSH 使用加密密钥登录到服务器。
The Secure Shell (SSH) in Linux is used to log into the machine in an encrypted and safe manner. This helps in providing a secure channel to streamline all requests to the Ubuntu server. SSH uses cryptographic keys to log into the server.
在 Windows 中,执行 Linux 服务器的安全 Shell 的最常用工具是 putty 。在本章中,我们将学习如何使用 putty 在服务器上进行安全 Shell。
On Windows, the most common tool to perform a secure shell to a Linux server is putty. In this chapter, we will learn how to use putty to Secure Shell into a server.
Step 1 − 从 http://www.putty.org/ 站点下载 putty。
Step 1 − Download putty from the http://www.putty.org/ site.

Step 2 −在连接以使用 putty 之前,我们需要知道 Ubuntu 服务器的 IP 地址。为此,在 Ubuntu 服务器的命令外壳中键入 ifconfig。
Step 2 − Before connecting to use putty, we need to know the IP address of our Ubuntu box. To do this, type ifconfig in the command shell of the Ubuntu server.

从上面的屏幕截图中,我们知道服务器的 IP 地址是 192.168.0.20
From the above screenshot, we know that the IP address of the server is 192.168.0.20
Step 3 −接下的步骤是安装服务器上的 SSH。为了 SSH 到服务器,你需要确保它已安装。在 Ubuntu 服务器命令提示符会话中运行以下命令。
Step 3 − Next step is installing SSH on the server. In order to SSH to a server, you need to make sure it is installed. Run the following command in the Ubuntu server command prompt session.
sudo apt-get install openssh-server

Step 4 −启动 PuTTY。输入 Ubuntu 服务器的 IP 地址,然后单击“打开”按钮。
Step 4 − Launch PuTTY. Enter the IP address of the Ubuntu server and click the Open button.

Step 5 −下一个屏幕要求接受从服务器发送的加密密钥。
Step 5 − The next screen requests to accept the encrypted key sent from the server.

Step 6 −最后,输入用户名和密码登录到服务器。我们已经成功地建立到服务器的安全 Shell。
Step 6 − Finally, enter the username and password to log into the server. We have successfully established a secure shell to the server.
