Home >Operation and Maintenance >Linux Operation and Maintenance >How to solve winscp connection refused
Solution: 1. Use the "sudo ufw disable" command to turn off the firewall; 2. Use the "sudo /etc/init.d/ssh restart" command to open the remote service; 3. Open port 22.
The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, Dell G3 computer.
If the winscp connection is refused, you can try the following methods:
1) Turn on|Turn off the firewall (needs to be turned off here)
sudo ufw enable|disable
2) Start remote service
Enter in the terminal interface: service sshd start
.
The result shows: ssh: unrecognized service.
Enter the view command: service ssh status
The display also shows unrecognized service.
Start remote service:
Terminal interface type: sudo /etc/init.d/ssh restart
(or sudo /etc/init.d/ssh start)
3)Port number 22 to open
sudo vi /etc/ssh/ssh_config
If ROOT permission connection is denied,
sudo vi /etc/ssh/sshd_config
Find PermitRootLogin no and change it to yes
Restart the sshd service
service sshd restart Remember to restart!
success! ! !
If you want to read more related articles, please visit PHP Chinese website! !
The above is the detailed content of How to solve winscp connection refused. For more information, please follow other related articles on the PHP Chinese website!