|
208.
|
|
|
sudo apt-get install openssh-client
|
|
|
|
sudo apt-get install openssh-client
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:59(command)
|
|
209.
|
|
|
To install the OpenSSH server application, and related support files, use this command at a terminal prompt:
|
|
|
|
要安装 OpenSSH 服务器应用程序及相关的支持文件,可以在终端提示符后使用以下命令:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:61(para)
|
|
210.
|
|
|
sudo apt-get install openssh-server
|
|
|
|
sudo apt-get install openssh-server
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:66(command)
|
|
211.
|
|
|
You may configure the default behavior of the OpenSSH server application, <application>sshd</application>, by editing the file <filename>/etc/ssh/sshd_config</filename>. For information about the configuration directives used in this file, you may view the appropriate manual page with the following command, issued at a terminal prompt:
|
|
|
|
您可以通过编辑 <filename>/etc/ssh/sshd_config</filename> 文件来配置 OpenSSH 服务器应用程序的缺省过程。关于该文件中使用的配置语句信息,您可以在终端提示符后运行下列命令来查阅相应的手册页:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:75(para)
|
|
212.
|
|
|
man sshd_config
|
|
|
|
man sshd_config
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:83(command)
|
|
213.
|
|
|
There are many directives in the <application>sshd</application> configuration file controlling such things as communications settings and authentication modes. The following are examples of configuration directives that can be changed by editing the <filename>/etc/ssh/ssh_config</filename> file.
|
|
|
|
在 <application>sshd</application> 配置文件中有许多语句来控制那些诸如通信设置和认证模式。下面是一个通过编辑 <filename>/etc/ssh/ssh_config</filename> 文件来改变配置语句的例子。
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:85(para)
|
|
214.
|
|
|
Prior to editing the configuration file, you should make a copy of the original file and protect it from writing so you will have the original settings as a reference and to reuse as necessary.
|
|
|
|
在编辑配置文件之前,您应该生成一个原始文件的拷贝并对其写保护,以便您可以参考原始文件并在必要时重用它。
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:92(para)
|
|
215.
|
|
|
Copy the <filename>/etc/ssh/sshd_config</filename> file and protect it from writing with the following commands, issued at a terminal prompt:
|
|
|
|
拷贝 <filename>/etc/ssh/sshd_config</filename> 文件并对其写保护可以通过在终端提示符后运行下列命令:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:96(para)
|
|
216.
|
|
|
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
|
|
|
|
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:101(command)
|
|
217.
|
|
|
sudo chmod a-w /etc/ssh/sshd_config.original
|
|
|
|
sudo chmod a-w /etc/ssh/sshd_config.original
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/remote-administration.xml:102(command)
|