首页 > 系统相关 >windows和linux文件传输[SSH]

windows和linux文件传输[SSH]

时间:2022-10-27 14:59:16浏览次数:97  
标签:sshd windows 文件传输 etc PermitRootLogin SSH config ssh

Linux系统安装ssh的server

  apt-get install openssh-server

  修改/etc/ssh/sshd_config文件

    vim /etc/ssh/sshd_config

  修改如下:允许root账户登录

    #PermitRootLogin prohibit-password
    PermitRootLogin yes

ssh远程登录的过程中出现报错ssh:connect to host 192.168.xx.xxx port 22: Connection refused,检查两边的ssh服务或端口是否开启的

ssh连接服务器时,提示Permission denied (publickey,password)

若密码错误没错,且服务器上的sshd服务已经开启,则需要修改服务器的配置文件/etc/ssh/sshd_config

PubkeyAuthentication no
PasswordAuthentication yes

保存后重启sshd服务

service sshd restart

 

标签:sshd,windows,文件传输,etc,PermitRootLogin,SSH,config,ssh
From: https://www.cnblogs.com/boring-luobo/p/16832201.html

相关文章