Copy file to desktop with putty
Improve this question. Belle Belle 13 1 1 gold badge 1 1 silver badge 5 5 bronze badges. Add a comment. Active Oldest Votes. You can use it from command line: pscp user host:source target Where user and host refer to the server you are connecting to.
Improve this answer. Ok, I understand how to find paths to other parts within your directories in Linux, but without giving away the answer or command , is it possible to find the path to the desktop of the current computer you are using, in other words, can you access folders outside of linux? For example, "My Documents" in Windows? No you can't read out from remote computer to local when using ssh putty.
You need to run a putty command on the local machine, to go grab the file. You could do a ssh back from the remote to the local, but you seem to be using Microsoft's Windows so you can't. Another classmate did the same! She used Filezilla to save a file she has saved in her Linux directory and then you could see the file on her desktop.
The desktop was on a university's computer — Belle. It may be better to ask the local IT-support team, at the university. To end the SFTP session, type bye. Christopher Christopher This is my next step. Well, first step actually is to learn what SFTP is and then proceed from there. Thank you. With the left and right arrow keys you can move the line cursor to correct mistakes in your commands. Don't forget that you also need to start Pageant and add your private SSH key.
After you execute the set path command, you just need to type psftp followed by a space and your master username and the name of the server: e.
With cd.. Here is a list with some useful commands:. Files can be downloaded with the get command:. The above command will download a file called examplefile.
This has to be done when you're downloading a file to a directory on your local computer that is not your current working directory. Unlike PSCP, where if you don't specify a name the file will be saved with the original name, with PSFTP if you don't specify a name for the file the get command might not work. You have the choice whether to use the same name for the target file or to use a different one, but in both cases the content of the file will be the same as that of the source file.
Since with PSFTP you can browse and change the working directory on your account cd command , you don't have to type the full path to the file on your account that you want to download. Using the above example, if you use the cd command e. The same is true for the current working directory on your local computer. In this case you don't even have to type the name of the target file when you download it to the current working directory on your computer.
You can just use get examplefile. To download a directory with all its content including subdirectories , you have to add, as with PSCP, the option -r :. Hi hhh, pscp is a command-line tool as specified in the documentation available on the official website : the. Seriously, no way to get scp or pscp to Cygwin or something else under one emulation? I would like to get pscp to work in Cygwin and CMD automatically, people are really supposed to create env vars or how to do it in W?
Feels too hxckish to me You didn't say you had Cygwin installed! And i didn't mentionned it because I think it's even more "hxckish" as you say if your intention was only to transfer a file. In this case you can install scp under Cygwin if not already done re-run setup. A quick search cygwin scp with my favorite search engine enable me to find that the ssh and scp commands are provided with the openssh package of the Cygwin setup : question-defense.
Show 4 more comments. You can then do some like this scenario. When I click pscp, it closes?! Open up command prompt and navigate to the directory where you have pscp saved. Open command prompt by searching for cmd in the start menu. In the command prompt window, change the directory to your desktop like this:. In the command prompt, execute the following command to copy a local file called demo-file.
0コメント