In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to solve SSH can not transfer files problem, I believe that many inexperienced people are helpless about this, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
SSH cannot transfer files
File transfer server could not be started or it exited unexpectedly. Most likely the sftp-server is not in the path of the user on the server-side. "
And I've been looking up a lot of stuff online.
The requested URL/etc/ssh/sshd_config was not found on this server.
Subsystem sftp /usr/libexec/openssh/sftp-server This directory path is correct,
For example, the/etc permission issue
For example,
Add the following line to the front of the/root/.bashrc file:
[ -z "$PS1" ] && return OR: [ $- != *i* ] && return
After trying, it still didn't work.
Later, I went to check ll /usr/libexec/openssh/sftp-server and found that I had no permissions.
At the same time lsattr sftp-server attribute-i
This way you know, first remove-i, and authorize sftp-server.
The requested URL/usr/libexec/openssh was not found on this server.
Then remove the hidden attribute, chattr -i sftp-server
authorization, chmod 755 sftp-server
As a result, the service was restarted, and then it was OK.
/etc/init.d/sshd
After reading the above, do you know how to solve SSH can not transfer files? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.