To open SSH service, you first need to install the library to open SSH service:
sudo apt-get install openssh-server
Check the current SSH opening status:
ps -e |grep ssh
If SSHD is present, sSH-Server is already started. If there is only agent, it has not been started;
open SSH service:
/etc/init.d/ssh start
To start or want to restart SSH, modify the configuration and restart the SSH service:
vi /etc/ssh/sshd_config
Then you can see the configuration file and modify it according to the requirements.
restart SSH:
sudo /etc/init.d/ssh restart
Read More:
- Springboot starts, closes, and restarts scripts as jar packages
- Windows subsystem Ubuntu 18.04 solves SSH problem
- Failed to restart ssh.service: Unit not found.
- nt service 1072 No need to restart, repeat the method of installing the service program or service driver
- ansible Q&A: Failed to connect to the host via ssh: ssh_exchange_identification and Authentication or per
- Encryption unsuccessful, need to factory reset or crash after android restarts several times
- Mobaxterm connects to Ubuntu server through SSH network error: software caused connection abort
- Ubuntu starts Xilinx vivado
- Solution to “error: invalid environment block” when Ubuntu starts up
- Solution to x service error when installing NVIDIA graphics driver under Ubuntu
- How to generate and view SSH keys in Ubuntu 16.04
- [Error resolution] paramiko.ssh_exception.SSHException: Error reading SSH protocol banner setting
- Error 13 when grub starts: solving the problem of invalid or unsupported executable
- Solutions to remote or adding SSH key errors
- When the source side of Dameng synchronization tool HS starts the service, it prompts that the so file does not exist: libdmoci.so
- Pxe-e51 “no DHCP or DHCP proxy offers received” error appears when PXE windows img under Linux client starts
- Parsing error name or service not known [How to Solve]
- Synergy Ubuntu 18 + win7 timed out or new client is unresponsive
- Centos7 executes the command service mysqld start and prompts Failed to start mysqld.service: Unit mysqld.service not loaded
- php_ network_ Getaddresses: getaddressinfo failed: name or service not known solution