tailieunhanh - Ubuntu Linux Toolbox 1000+ Commands for Ubuntu and Debian Power Users phần 9

$ Sudo / etc / / networking Shutdown khởi động lại và đưa lên giao diện mạng * Cấu hình lại giao diện mạng . Đã có một var/run/ tập tin pid / pid 9242 giết chết quá trình khách hàng cũ, loại bỏ một tập tin PID Internet Systems Consortium DHCP | Chapter 13 Doing Remote System Administration To install the OpenSSH server run the following command sudo apt-get install openssh-server Here are a few facts about SSH For Windows you can use the Linux SSH tools within Cygwin . But unless you re already using Cygwin a Linux-like environment for Windows we recommend PuTTY uk sgatatham putty . PuTTY is a powerful open source Telnet SSH client. Use SSH version 2 whenever possible because it is the most secure. Some SSH-enabled network appliances may only support older less secure versions. OpenSSH supports all versions. Some older versions of Ubuntu accepted SSH v1 and v2 connections. Newer releases accept version 2 by default. In Ubuntu run etc ssh start to start the SSH service sshd daemon . To configure the service edit the etc ssh sshd_config file. To configure the ssh client edit the etc ssh ssh_config file. If you prefer to use graphical tools to administer your remote Linux system you can enable X11 Tunneling also called X11 Port Forwarding . With X11 Tunneling enabled on both the SSH client and server you can start an X application on the server and have it displayed on the client. All communication across that connection is encrypted. Ubuntu comes with X11 forwarding turned on X11Forwarding yes for the server sshd daemon . You still need to enable it on the client side. To enable X11 forwarding on the client for a one-time session connect with the following command ssh -X francois@myserver To enable X11 forwarding permanently for all users add ForwardX11 yes to etc ssh ssh _config . To enable it permanently for a specific user only add the line to that user s .ssh config. Once that setting has been added the -X option is no longer required to use X11 Tunneling. Run ssh to connect to the remote system as you would normally. To test that the tunneling is working run xclock after ssh ing into the remote machine and it should appear on your client desktop. SSH .