Home  >  Article  >  Operation and Maintenance  >  How to solve winscp connection refused

How to solve winscp connection refused

青灯夜游
青灯夜游Original
2021-02-07 11:34:0928713browse

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

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!

Statement:
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 admin@php.cn