gpt4 book ai didi

linux - 将文件从 Windows 客户端复制到 Putty SSH

转载 作者:太空宇宙 更新时间:2023-11-04 12:33:45 25 4
gpt4 key购买 nike

我想从我的本地窗口复制一个数据到我的 linux 服务器。

文件在C:\Users\Test\Desktop\new\foo.txt,我想把它复制到xyz@wekroso51.int.bebra.com/home/新建/bin

我该怎么做?

最佳答案

Solution 1 --->Try something like this:

pscp -l user1 c:\ftp\picture.jpg slacker1:/home/user1/pics

As per the Putty manual:

发送(一个或多个)文件到远程服务器:

pscp [选项] 源 [源...] [用户@]主机:目标

因此,要将本地文件 c:\documents\foo.txt 复制到服务器 example.com,作为用户 fred 复制到文件/tmp/foo,您可以键入:

pscp c:\documents\foo.txt fred@example.com:/tmp/foo

Solution 2--->Use Filezilla using SFTP instead of putty to transfer files to connect with server.

关于linux - 将文件从 Windows 客户端复制到 Putty SSH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42579728/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com