Linux notes--Ubuntu setting sftp service

Table of contents

1--Modify the configuration file

2--Logout code

3--Change the code

4--Restart the service


1--Modify the configuration file

vim /etc/ssh/sshd_config

2--Logout code

① Logout:

Subsystem sftp /usr/libexec/openssh/sftp-server

② Change to:

Subsystem sftp internal-sftp

3--Change the code

PermitRootLogin no
# 更改为:
PermitRootLogin yes

4--Restart the service

/etc/init.d/ssh restart

Guess you like

Origin blog.csdn.net/weixin_43863869/article/details/132410656