It means your ssh service has been started. If it fails, try uninstalling it (see Step 6: Uninstalling the ssh service) and then installing it (Part 2: Installing the ssh service).
First step into the /etc directory. The /etc directory stores some configuration files, such as passwd and other configuration files. If you want to use ssh to remotely log in linux to install sshYulin Mufeng linux, you need to configure / For the configuration information in the etc/ssh/sshd_config file, use vim to edit the LINUX community. Enter vim/etc/ssh/sshd_config in the command line mode. After entering, press "i" to enter the editing state, find and change the file. Just two lines: PasswordAuthenticationyes, PermitRootLoginyeslinux installation ssh,
After making changes, press "esc" to exit, and press ":wq" to save and exit, or press ":x" to save and exit directly (Note: x here is uppercase x, and lowercase Encryption, please pay attention when using),
After exiting the edit mode, return to the command mode, enter servicesshstart/stop/restart/status, start/stop/restart/status, and select start to start the ssh service.
If the command to enable the SSH service does not work, you can use the command: sudoservicesshdstart to try and check whether the SSH service is enabled. Use the command: ps-e|grepsshd
At this time, you can check whether the ssh status is running. In the running status, you can use ssh to log in remotely.
Use the "ifconfig" command to query the ip address
When logging in using ssh, enter the host (linux ip address), account number, and password to log in!
If you need to connect to SSH remotely, you need to open port 22 on the firewall, turn off the firewall, or set an exception for port 22/etc/init.d/iptablesstop
How to log in through ssh, please refer to the next article "Remote login to the server through ssh!"
The approximate steps are:
SSH service configuration file location
/etc/ssh/sshd_config
#Change configuration
PasswordAuthenticationyes
PermitRootLoginyes
#Start SSH service
sevicesshstart/stop/status
Install SSH: yuminstallssh
Start SSH: servicesshdstart
Set up and run: chkconfigsshdon
The above is the detailed content of SSH service startup and configuration guide: How to successfully set up and log in remotely. For more information, please follow other related articles on the PHP Chinese website!