winSCP報錯誤碼3 服務器返回的錯誤消息:Permission denied(如何用root賬號登陸winscp)

主要是由於普通用戶權限不夠,更改成root用戶就能夠了,通常不建議直接使用root帳戶操做服務器nginx

更改步驟:vim

一、設置root密碼:服務器

sudo passwd root

二、修改etc/ssh/sshd_config文件:注:不能直接登陸能夠先用普通用戶登陸,而後再將用戶切換爲root用戶ssh

vim /etc/ssh/sshd_config

3.添加配置spa

若是有這段,將其註釋:#PermitRootLogin without-password
PermitRootLogin yes StrictModes yes
4.重啓ssh服務 
service sshd restart

5.操做完成後就能夠經過 root 帳號登入 winscp ,而且能夠上傳文件了rest

 

其餘:若是是操做nginx下的nginx.conf文件,路徑爲:usr -->local?--> nginx -->conf  -->nginx.confcode

相關文章
相關標籤/搜索