Hi,
I want to see how I move .mp3 on a MacBook to Raspberry Pi 5 connected by
File:connect.raspberrypi.com/devices
![]()
Bill
Hi,
I want to see how I move .mp3 on a MacBook to Raspberry Pi 5 connected by
File:connect.raspberrypi.com/devices
![]()
Bill
You can follow these docs
Hey there, @Bill293536,
I canât say Iâve done it on a Macbook, but it looks like the scp command is used across Unix systems. From your command line:
scp /path/to/local/file username@hostname:/path/to/remote/file
Thereâs a couple more commands in this thread that could come in handy as well, such as transferring between remote machines.
And of course, if all else fails, you can always just put it on a USB, connect it to the Pi, and move it from the mounted drive via via some good mkdir, mv, and cp commands.
Thank you.
I canât quite work out how to get:
username
hostname
password
port
Sorry!
![]()
Bill
Hey there, Bill,
Let me clear that up because I guarantee youâll know most of these under a different name:
Hope that helps, Bill,
Secure, Contain, Protect.
Jane,
![]()
For hostname, just put the IP Address of your Pi - Where do I find this?
Bill
Hey there, Bill,
Ok, I presume that youâre already able to access your pi.
You should find it by using the below command in Terminal:
ifconfig
A couple of options will come up depending on what networking method youâre using. If you Pi is on a wireless network, you want the wlan0. If your Pi is wired, youâll want eth0. Itâs ok if the numbers at the end are different.
Your IP Address will probably start with 192.168. . Make sure you donât use the one that ends in 1 as thatâs your routerâs address.
Jane,
I am so sorry. I canât get the FileZilla to work.
![]()
Host: pi
Username: pi
Password: #####
Port:
========
Connection attempt failed with âECONNREFUSED - Connection refused by serverâ
Bill
Hey there, @Bill293536,
Sorry, are you using the scp command I recommended to you previously or are you using FileZilla?
FileZilla works quite differently to the scp command as it needs the ftp ports to be activated and for there to already be a server on the device that youâre connecting to. Have you sent up a FileZilla server on your Raspberry Pi? And enabled a port to have access to.
Itâs why I recommend using the scp command as it only requires ssh access on the Pi.
P.S. Please do not put your passwords on the forum, that is an extremely bad idea.
billnoble@Bills-MacBook-Air ~ % scp /users/billnoble/desktop/hello.mp3 xxxxxxxx@pi:/pi/desktop/hello.mp3
zsh: event not found: @pi
Hey there, @Bill293536, try replacing the name @pi with the IP address of your Pi.
Jane,
![]()
scp /users/billnoble/desktop/hello.mp3 xxxxxxxxxx%@pi:/pi/desktop/hello.mp3
pi is correct.
Do I enter the password as âxxxxxxxxxxx%â or something similar?
Hey there, Bill,
I think youâre file path is also wrong. If youâre sending it to a folder called desktop on your Pi it would:
/home/pi/desktop/hello.mp3
And please check your capitalisations. Debian systems are case sensitive and if youâre trying to have it appear on the Desktop, that should be:
/home/pi/Desktop/hello.mp3
$ scp /users/billnoble/desktop/hello.mp3 xxxxxxxx!@pi:/home/pi/Desktop/hello.mp3
bash: !@pi: event not found
Thanks for that, Bill,
But can you please confirm that youâre entering [username]@[IP Address] because @pi sometimes will not always resolve?
Hi Jane,
![]()
It is exactly the:
âscp /users/billnoble/desktop/hello.mp3 xxxxxxxx!@pi:/home/pi/Desktop/hello.mp3â
With the result being:
âbash: !@pi: event not foundâ
I estimate that there is something about âxxxxxxxx!â that there is something wrong?
Bill
Hi Bill
Just noticed this.
Jane posted
Your entry
I note the exclamation mark between xx and @. I am not sure here but doesnât an exclamation mark have some significance in the digital world like âNOTâ
Like you are actually saying âNOT@â
Cheers Bob
Ah, maybe youâre right!
Can I put the thing in: " "?
Hi Bill
Why ?? Just leave it out and try.
Cheers Bob
Hey there, Bill,
Bob is right here, the ! mark would be used as a history expansion and throw off the entire bash script.
And no, your username should be exactly as it is on your Pi, no changes or different punctuation.
Finally, donât put in your password at any point in the command. If all goes accordingly, you should then be prompted for your password on a new line.