Love every moment of your journey like a subway
Ssh, telnet, ftp I believe that everyone is familiar with, they are the most commonly used services in Linux. Generally, the linux system is installed with ssh, ftp, and telnet by default, but there are some cases that are not installed. This section mainly records how to build these services on Linux, and simply records the client usage of the corresponding service.
Check if the ssh service is installed:
If it is already installed, the results are as follows:
If not installed, install the openssh server:
Turn on and off the ssh service:
MAC starts ssh service:
Ssh configuration file:
Enable the root user to ssh, comment out #PermitRootLogin without-password, and add PermitRootLogin yes. For more configuration information, please refer to: http://blog.csdn.net/zhu_xun/article/details/18304441
Turn off the firewall:
Boot from boot settings:
Turn off booting from startup:
Note: The above configuration file needs to be restarted to take effect.
The default linux is installed on the client.
Remember the account password, don’t re-enter it every time:
So every time you log in to a new address, a configuration file will be generated under .ssh/, and the account password will be recorded.
You can copy example1.txt to the
The example1.txt will be moved from the home directory of the remote computer to the current directory of the local computer.
The client generates a key pair:
- -t encryption type
- -f key file name
- -C Remarks
Note: Execute the command to generate the test and test.pub files in the .ssh directory (if there is no ~/.ssh directory), test is the private key, and test.pub is the public key.
The server imports the public key of the client:
The client can log in through the private key file without password login.
Start the service:
FTP server configuration:
Configuration file content:
Open the telnet service:
Edit: /etc/xinetd.d/telnet file
To allow telnet to connect via xinetd, you need to edit the /etc/xinetd.d/telnet file:
Change the value of ‘disable’ from ‘yes’ to ‘no’.
To allow telnet to connect to this machine from other machines, you need to add an allow rule:
If you need to power on the service automatically, add xinetd to “DAEMONS” in /etc/rc.conf:
Note: Installing telnet under centos7 does not generate /etc/xinetd.d/telnet files.