Linux与windows(使用Xshell的操作)
-
普通文件的传输
rz #从windows获取文件
sz filename #传文件到windows -
传输大于4GB的文件安装winSCP
使用WinSCP时可能会出现:
无权访问。错误码:3服务器返回的错误消息:Permission denied
- vi /etc/ssh/sshd_config #修改以下内容
#PermitRootLogin without-password #如果有这段,将其注释: #添加如下语句 PermitRootLogin yes StrictModes yes
- systemctl restart ssh.service #如果报错试一试sshd.service
- winSCP使用root用户名登录
- 遇到的问题
#进行如上修改后发现sshd启动时报错:Job for sshd.service failed because the control process exited with error code. See "systemctl status >sshd.service" and "journalctl -xe" for details.
#修改为之前的,重启成功,发现是修改时手误出错