当前位置:网站首页>SFTP cannot connect to the server # yyds dry goods inventory #
SFTP cannot connect to the server # yyds dry goods inventory #
2022-07-05 02:40:00 【wangzx_ mm】
1、 to glance at ssh Whether the operation is normal
systemctl status sshd
service sshd status
- 1.
- 2.
2、 Take a look at the configuration file
vi /etc/ssh/sshd_config
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
--
--
-Subsystem There is
# If No .
--
-- Please comment out the following sentences , Conflict with the above
Subsystem sftp internal-sftp-server
UsePAM
yes
Match User test
ChrootDirectory /opt/download/
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
3、 Restart the service
/etc/init.d/sshd reload perhaps service sshd
restart
- 1.
4、 Check the connection status
netstat
- 1.
5、 Check whether the firewall is on , Let's take a look again. The firewall policy is not set
systemctl status firewalld
service iptable status
iptables
-L
-n
- 1.
- 2.
- 3.
- 4.
6、 Check the vsftpd Whether the service is normal
systemctl status vsftpd
- 1.
7、 to glance at sftp If there is something wrong
systemctl status sftp
service sftp status
- 1.
- 2.
边栏推荐
- Yolov5 model training and detection
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- Introduce reflow & repaint, and how to optimize it?
- Using druid to connect to MySQL database reports the wrong type
- [source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit
- 【LeetCode】110. Balanced binary tree (2 brushes of wrong questions)
- 丸子百度小程序详细配置教程,审核通过。
- Avoid material "minefields"! Play with super high conversion rate
- Hmi-31- [motion mode] solve the problem of picture display of music module
- Last words record
猜你喜欢

openresty ngx_lua執行階段

Summary and practice of knowledge map construction technology

Design of kindergarten real-time monitoring and control system

Action News

Exploration of short text analysis in the field of medical and health (II)

Go RPC call

Unpool(nn.MaxUnpool2d)

Vb+access hotel service management system

Design and implementation of high availability website architecture

Acwing第 58 场周赛【完结】
随机推荐
[uc/os-iii] chapter 1.2.3.4 understanding RTOS
Open source SPL optimized report application coping endlessly
Advanced learning of MySQL -- Application -- Introduction
Pgadmin 4 V6.5 release, PostgreSQL open source graphical management tool
STL container
openresty ngx_ Lua variable operation
[daily problem insight] Li Kou - the 280th weekly match (I really didn't know it could be so simple to solve other people's problems)
Introduce reflow & repaint, and how to optimize it?
Redis distributed lock, lock code logic
【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)
Grpc message sending of vertx
Pytest (4) - test case execution sequence
Using druid to connect to MySQL database reports the wrong type
GFS分布式文件系统
Openresty ngx Lua Execution stage
Collection of gmat750 wrong questions
Leetcode takes out the least number of magic beans
Traditional chips and AI chips
Why do you understand a16z? Those who prefer Web3.0 Privacy Infrastructure: nym
Avoid material "minefields"! Play with super high conversion rate