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:
- Putty remote login VMware virtual machine Linux
- ssh can connect but sftp can not connect
- Linux configuration SFTP server
- Winscp failed to upload the file to the server, indicating permission denied with return code 3
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- Configuring NFS server in Linux
- SFTP login error: fatal error: received unexpected end of file from SFTP server
- Ambari OpenSSL version problem: sslerror: failed to connect. Please check OpenSSL library versions
- Solution to x service error when installing NVIDIA graphics driver under Ubuntu
- win10 unable to start ssh-agent service, error :1058 solution
- Solve the problem of SQL Server limit 2G memory limit installation
- Build LNMPR Error — php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
- Distribution setup SQL Server Agent error: “RegCreateKeyEx() returned error 5, ‘Access is denied.’” …
- Error creating bean with name ‘enablererediskeyspacenotificationsinitializer’
- Raspberry Pi 3 installation and software configuration issues collection
- Failed to restart ssh.service: Unit not found.
- Centos8 solves SSH secure shell error algorithmic negotiation failures
- Error code 2: Access violation error.
- Installing rabbitmq on alicloud server
- ssh port forwarding