What should I do if ssh can connect to the server, but cannot connect in Filezilla via ftp

The server centos 6.9 can connect to the server through ssh under the maxos terminal

But it can't connect through ftp in filezilla

I searched it and found that I have to use the sftp protocol to connect, that's it

 It still reported an error

Port 22 is open, it shouldn't be a port problem. I searched the Internet and tried to modify the /etc/ssh/sshd_config configuration file.

It's okay if this is not changed. After the change, restart the sshd service. After the terminal exits the ssh connection, even the terminal ssh cannot connect to the server. I cried... (It’s not that this method doesn’t work, it’s probably because I’ve changed my operation too much, and I don’t know what I changed after I changed it.)

What to do now, I can’t enter the server ssh configuration and change it back.

Why doesn't Alibaba Cloud server enter the server terminal through ssh

Now I’m more violent. I uninstalled the ssh service first, and then reinstalled it.

sudo yum remove openssh-client openssh-server
sudo yum install openssh-client openssh-server

 If it's Ubuntu, just change yum to apt-get

At this time, remember to change the previously changed sshd_config configuration back

Change back to default

Then start the sshd service

service sshd start 

 Then reconnect via ssh in the terminal and it will be ok. In fileZilla, the link can also be successful via sftp.

Guess you like

Origin blog.csdn.net/promiseCao/article/details/107602297