开发者

Using psftp to upload and download files [closed]

开发者 https://www.devze.com 2023-02-04 14:46 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

Hello I am trying to upload and downl开发者_JAVA百科oad files from my desktop to my server. Now after some search I did download psftp. I used to use filezilla earlier, but I cannot install it on my desktop due to a few reasons. Since psftp (similar to putty) is just an executable for file transfer.

So now after going through this link http://www.math.tamu.edu/~mpilant/math696/psftp.html. I understood that put and get are two commands I would use to download and upload files. Now when I logon to the server and say get filename, it actually is throwing back an error "local: unable to open filename". I tried that with other files too, and I end up getting the same error.

Am I making a mistake or is it a problem with this executable?

I did not find relevant tags for this topic, could somebody suggest me the right forum for this issue.


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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号