vozzin1
Posts: 2
Joined: Thu Jan 07, 2016 5:20 pm

Files and Transfers

Thu Jan 07, 2016 5:41 pm

January 07, 2015

Hello:

Using the windows PC to access the Pi is quite straightforward. I'm using Putty, and reading the directory structure on the Pi is no problem. I had to configure the Pi to allow ssh access, and load Putty onto my PC, but the command sequence needed to transfer files out to my PC isn't working. The less complicated the interaction here the better. If I can use ONLY Putty to view directories, AND to transfer files out of the Pi, that would be best. If I try to use CP or SCP to transfer a file, I get a second inquiry line during the execution, and I don't know what it means. All I want to do is transfer the file.

Example:

pi@raspberry$scp pi@raspberry/sub/filelocation/neededfile.ods c:\
>


If one looks at the sequence above, there are two locations being set out there (in the first line): the RasPI sub location, and the c:\ location (file transfer from one place to another). But then on the second line, there is the right arrow, and I don't know what it's asking for.

Can I transfer files to my PC with Putty, and without the confusion? It's just not working.

Any help would be appreciated. Thank you.


Vozzin1

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: Files and Transfers

Thu Jan 07, 2016 6:54 pm

Your basic approach and assumptions are wrong.

What you need to do is to initiate it from the Windows side. This is true because, unless special measures are taken, there is no 'ssh' server running on your Windows machine. So, you'll need to leverage the fact that there *is* an ssh server running on the Pi.

So, open up a CMD (Command Prompt) window on the Windows machine and do:

C:> cd \progra~1\putty
C:> pscp -p pi@raspberrypi:path/to/file/onThePi.txt C:\

You'll have to read up on pscp and its syntax and options (in your Putty documentation)
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

vozzin1
Posts: 2
Joined: Thu Jan 07, 2016 5:20 pm

Re: Files and Transfers

Tue Jan 12, 2016 8:36 pm

Jan 12, 2016

Quietzone:

Your reply was helpful, thank you. There was some changes that had to be included into the dos PATH which took some head scratching to finally get around. Everything works now.

Vozzin1

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: Files and Transfers

Tue Jan 12, 2016 9:23 pm

The easiest way is to install Filezilla or WinSCP on Windows. That will give you a GUI interface with your Windows files (local) in the left pane and the RPi files (remote) in the right pane. You can select and copy files, edit, delete, or you can just drag and drop them back and forth. It's much easier than doing it from a command line.

Return to “Beginners”