Error screenshot
problem causes
selinux problem
Solution
Modify the port of sshd in selinux
# Install the modification tool
$ yum -y install policycoreutils-python
# Check the port of sshd in selinux, the output is 22
$ semanage port -l | grep ssh
# New ports
$ semanage port -a -t ssh_port_t -p tcp 27615
$ systemctl status sshd
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-10-29 10:10:08 CST; 36min ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 8653 (sshd)
CGroup: /system.slice/sshd.service
└─8653 /usr/sbin/sshd -D
Oct 29 10:10:08 centos-linux.shared systemd[1]: Starting OpenSSH server daemon...
Oct 29 10:10:08 centos-linux.shared sshd[8653]: Server listening on 0.0.0.0 port 27615.
Oct 29 10:10:08 centos-linux.shared systemd[1]: Started OpenSSH server daemon.
Oct 29 10:31:44 centos-linux.shared sshd[18735]: Accepted password for root from 10.211.55.2 port 50375 ssh2
Read More:
- The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u
- Solution to the problem that listen TCP 0.0.0.0:3306: bind: address already in use port is occupied in Linux centos7
- Port 4200 is already in use.Use ‘-port’ to specify a different port error Reasons
- Through PID (process identification) to find the port (port) occupied applications, to solve the problem of port occupied
- ssh port forwarding
- Make the root user login through SSH and report the error of “permission denied, please try again”
- Gt Report Error ssh:connect to host github.com port 22
- Winscp failed to upload the file to the server, indicating permission denied with return code 3
- Error: Can’t bind the tftp port! Solution
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- filezilla Failed to create listen socket on port 21 for IPv4 solution
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- Kafka opens JMX port and reports that the error port is occupied
- Alibaba cloud builds FTP server 200 port command successful. Consider using PASV. 425 failed to establish connection
- The Tomcat connector configured to listen on port 7014 failed to start
- View port and resolve port conflict in Windows
- Eclipse port occupied( java.net.BindException : address already in use: bind) solution
- Failed to register observatory port with mDNS with error
- Failed to connect to 127.0.0.1 port 43571: problem solving record