How to solve winscp connection refused

青灯夜游
Release: 2023-01-03 09:23:21
Original
28440 people have browsed it

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.

How to solve winscp connection refused

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
Copy after login

2) Start remote service

Enter in the terminal interface: service sshd start.

The result shows: ssh: unrecognized service.

How to solve winscp connection refused

Enter the view command: service ssh status

The display also shows unrecognized service.

How to solve winscp connection refused

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!