c:\this\and\that\psftp.exe <---working directory of c:\this\and\that
c:\upload\file\is\here\file.txt <--where you keep the file to upload
c:\this\and\that> psftp
psftp> lcd \upload\file\is\here
psftp> put file.txt
应该可以解决问题。
if you're starting psftp by double-clicking the .exe, it will have a local working directory of whatever folder/directory you'd started it in. Unless the file you're uploading is also in there, you'll have to use lcd (local change directory) to switch to that other directory:
c:\this\and\that\psftp.exe <---working directory of c:\this\and\that
c:\upload\file\is\here\file.txt <--where you keep the file to upload
c:\this\and\that> psftp
psftp> lcd \upload\file\is\here
psftp> put file.txt
发布评论
评论(3)
如果您通过双击 .exe 来启动 psftp,它将具有您启动它的任何文件夹/目录的本地工作目录。除非您上传的文件也在其中,否则您必须使用 lcd (本地更改目录)切换到其他目录:
应该可以解决问题。
if you're starting psftp by double-clicking the .exe, it will have a local working directory of whatever folder/directory you'd started it in. Unless the file you're uploading is also in there, you'll have to use
lcd
(local change directory) to switch to that other directory:should do the trick.
好吧,抱歉打扰你们了,我的文件夹被锁定了,所以我没有目标文件夹的写权限。
Alright sorry for troubling you guys, my folder was locked down, so I did not have write access to the destination folder.
看起来您可能正在尝试获取(不存在的)本地文件。发布会话的完整跟踪可能会有所帮助。
It looks like you might be trying to fetch (non-existent) local files. Posting the full trace of the session might help.