سؤال

Hello I am trying to upload and download 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.

هل كانت مفيدة؟

المحلول 2

Alright sorry for troubling you guys, my folder was locked down, so I did not have write access to the destination folder.

نصائح أخرى

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.

It looks like you might be trying to fetch (non-existent) local files. Posting the full trace of the session might help.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top