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.
#修改爲之前的,重啓成功,發現是修改時手誤出錯