- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想上传C:\Users\myuser\Downloads\SFTP
中的所有文件我本地 Windows 上的文件夹到远程 SFTP 服务器 myfolder
目录。
我在 Windows 上运行 sftp 并实现上述目标时遇到多个问题。
下面是我的命令:
C:\putty\psftp.exe -b C:\putty\sftp_commands.txt -l myuser -pw mypass 10.8.44.86
C:\putty\sftp_commands.txt
文件:
mkdir myfolder
cd myfolder
lcd "C:\Users\myuser\Downloads\SFTP"
put "C:\Users\myuser\Downloads\SFTP\*.*"
C:\Users\myuser\Downloads\SFTP\*.*
至
C:\Users\myuser\Downloads\SFTP\file1.txt
.
C:\Users\myuser\Desktop>C:\putty\psftp.exe -b C:\putty\sftp_commands.txt -l myuser -pw mypass 10.8.44.86
Using username "myuser".
Pre-authentication banner message from server:
| EFT Server Enterprise 7.3.2.8
End of banner message from server
Keyboard-interactive authentication prompts from server:
End of keyboard-interactive prompts from server
Remote working directory is /
mkdir /myfolder: OK
Remote directory is now /myfolder
New local directory is C:\Users\myuser\Downloads\SFTP
local: unable to open C:\Users\myuser\Downloads\SFTP\*.*
最佳答案
put
不支持通配符,必须使用 mput
:
lcd "C:\Users\myuser\Downloads\SFTP"
mput *.*
关于windows - 无法通过 psftp 使用通配符上传所有文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59424579/
我在互联网上搜索了很多,但还没有找到任何有用的信息。 PFTP 是否根本不允许您运行“IF”和“WHILE”之类的循环? 如果是这样,请让我知道语法,我试着用我的头来反对它。恼人的是,PuTTY 允许
知道如何使用代理身份验证 (SOCKS5) 在 PuTTY psftp 命令下进行连接吗? psftp username@host -P portnumber -pw password 最佳答案 Pu
如何更改 PSFTP 中的默认本地目录?我知道如何打开应用程序并使用 lcd C:\where\I\want\to\go 更改我的本地目录,但我希望每个 session 都自动运行该命令,或者不需要运
我想上传C:\Users\myuser\Downloads\SFTP中的所有文件我本地 Windows 上的文件夹到远程 SFTP 服务器 myfolder目录。 我在 Windows 上运行 sft
我使用psftp将Linux机器上的目录同步到Windows服务器(连接由Windows服务器启动)。我使用“get -r / dir”命令来递归获取文件和目录。 是否有机会仅获取已更改/新的文件,从
我正在将文件从一组不同的服务器上传到一个数据服务器。我正在使用 psftp,20 多台服务器中的一台正在产生权限问题。 Remote working directory is / psftp> cd
我有一个批处理文件,用于通过 SFTP 将文件从本地 PC 移动到服务器。我的系统中安装了 PuTTY,批处理文件代码如下。 cd C:\Program Files (x86)\PuTTY psftp
我希望将本地 Windows 上 C:\Users\myuser\Downloads\SFTP 文件夹中的所有文件上传到远程 SFTP 服务器的 myfolder 目录。 下面是我的命令: C:\pu
我正在使用 psftp.exe从服务器下载文件。一旦我下载了这些文件,是否有一种简单的方法可以删除它们,但保留下载时可能出现在服务器上的新文件以供下次下载? 这是我的命令行: psftp.exe do
我正在编写一个 shell 脚本,将日志文件从远程 Linux 服务器下载到我的本地 Windows 电脑上(在执行其他几个操作之后),即一旦所有其他操作(例如读、写、放、获取等)在远程服务器和日志文
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
如何编写批处理文件来控制 psftp,但使用动态文件名?总的来说,我正在尝试转换视频文件,然后将其上传到我的 Apple TV。这是我所拥有的,它通常可以工作,但是命令不控制 psftp,psftp
我正在尝试使用 psftp.exe (putty) 从 powershell SFTP 文件。我可以运行单个命令,例如 open 但我需要更改默认目录,然后放置文件。以下代码将我带到 psftp 但忽
我遇到了StrictHostKeyChecking需要设置时的配置sftp两台服务器之间的通信(例如 Windows Server ---> Linux Server)。根据定义here (使用 fi
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
我想从 Python 脚本运行和控制 PSFTP,以便从 UNIX 机器上获取日志文件到我的 Windows 机器上。 我可以启动 PSFTP 并登录,但是当我尝试远程运行诸如“cd”之类的命令时,P
尝试使用 psftp 从 PowerShell 连接到 SFTP 服务器时,我收到以下消息: 错误: psftp.exe : The server's host key is not cached i
我正在以编程方式创建脚本文件并调用 psftp.exe如下: psftp user@hostname.com -pw password -b psftpscript.txt 但它会提示用户输入 The
我已按照以下指南设置 SSIS 程序包以检索位于 SFTP 服务器上的文本文件: https://www.mssqltips.com/sqlservertip/3435/using-sftp-with
使用 (PuTTY) PSFTP.exe 可以打开 shell 脚本以在 Linux 上执行某些操作。 在这个例子中,我使用 psftp.exe 打开 get30.txt 文件。 %%PROJECT/
我是一名优秀的程序员,十分优秀!