Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using psftp to upload and download files [closed]

Tags:

file

put

get

sftp

ftp

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.

like image 589
macha Avatar asked Jan 12 '11 17:01

macha


People also ask

How do I open Psftp file?

To open the PSFTP part of the PuTTY application suite, from the Start menu, open PuTTY, and then PSFTP. With the PSFTP login window open, type open followed by the name of the host you are connecting to (for example, open karst.uits.iu.edu or open mercury.uits.indiana.edu ). If the Store key in cache?

What protocol does Psftp?

PSFTP, the PuTTY SFTP client, is a tool for transferring files securely between computers using an SSH connection. PSFTP differs from PSCP in the following ways: PSCP should work on virtually every SSH server. PSFTP uses the new SFTP protocol, which is a feature of SSH 2 only.

Can Psftp connect to FTP?

No, PuTTY only supports SSH and the psftp tool is for SFTP, the SSH file transfer protocol. It does not support any kind of FTPS (FTP-over-TLS). (However, WinSCP has FTPS support.)

How use Psftp command line?

PSFTP transfer Open your command window, then change to the directory in which you saved psftp.exe. To start a session, type psftp followed by your login for the target computer. Press Enter, then follow your usual authentication procedures to log in to the remote machine.


2 Answers

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.

like image 195
Marc B Avatar answered Sep 22 '22 13:09

Marc B


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

like image 45
macha Avatar answered Sep 19 '22 13:09

macha