windows和linux文件传输[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

浙公网安备 33010602011771号