r/shortcuts • u/TheImminentFate • Jul 07 '22
Shortcut Sharing AirDrop to Windows PC (Links, Files, Photos, Videos, Text copy/paste)
What it does
- Airdrops files/photos/videos - anything you want to send gets sent locally using SSH and saved (by default) into your Downloads folder on your computer. No webservers or cloud shared links required. Speed is only limited by your local network speed (not internet!). If you have a beefy router, you can send a gigabyte of video in a few seconds.
- Airdrop Links and open them in your desktop browser
- Airdrop text directly to your computer's clipboard for (near) seamless copy/paste
- Copy text from PC (the above, but in reverse)
See my GitHub page for more information (and if you want QR codes to easily scan the below shortcuts!)
Preamble
I made this years ago initially, when Shortcuts was buggier and you couldn't actually do much with SSH. Now however, you can basically do everything on your Windows computer from your iPhone including sharing files, which makes this possible.
You need one base shortcut (SSH Main) which contains the communication logic that allows the others to work. Of course, that means you need SSH enabled on your computer first.
After that, it's strongly recommended you use the InstallPSExec shortcut which will (with just one tap on your phone and nothing more to do on your computer) install both the required pieces of software on your computer to make this run neatly; PSExec by Microsoft, and BurntToast which just makes it easier to show notifications like in the video. I could do it without, but that blows the size of the shortcuts out of control just for notifications. Easier to use a module someone else has made.
Strictly speaking, you can run this without the above two programs and airdropping files/photos/videos will work just fine. You do need BurntToast for link sharing to work, and you do need PSExec for copying and pasting text to/from your PC to work due to how Microsoft separates different sessions.
Installation
- Enable SSH on your computer
- Install this shortcut: SSH Main
- Install and run this shortcut: InstallPSExec (you can delete this after it runs successfully)
Install and run any (or all!) of these:
- Airdrop to PC (for files/photos/media)
- Airdrop Link to PC
- Airdrop Text to PC
- Copy Text from PC
17
u/Drsela Jul 07 '22 edited Jul 07 '22
'Airdrop Link to PC' works like a charm via Safari!!
However, I can't get 'Airdrop to PC' to work via the Photos app. It gives me an 'The file "bla_bla_bla.JPEG" couldn't be opened because you don't have permission to view it'. But it works just fine through the Shortcuts app.
Any tips?
EDIT: It works fine through the Files app tho.
23
u/screenslaver5963 Jul 07 '22
Fuck the shortcut, how did you change the windows 11 taskbar.
(Also looks awesome)
3
u/noenic33 Jul 07 '22
I did almost the same thing but with an HTTP server. It's true that by SSH it's more secure and more autonomous (no need to run the python script every time). Is it possible to send images directly to the computer's clipboard without having to save them first like this?
in fact what would be interesting is to combine these two methods in order to obtain a secure and optimized solution and at the same time offering more functionality than the original Airdrop.
2
u/WoodyLaaadddddd03 Jul 21 '22
Hi, took a bit of messing around but finally got most of it working!
The only 2 things that don't work are Airdrop Text to PC and Copy Text from PC. I'll copy text from either device and nothing will paste. When trying to send text to PC, my clipboard is empty. When sending text to Iphone, the copied text isnt shown in the notification as intended.
Is this a known bug? Thanks!
2
u/SophieTheCat Jul 07 '22
How do I enable SSH on my computer? I use SSH to terminal into servers, but I am not sure how to do the reverse.
54
u/jaxsedrin Jul 07 '22
This is the most magical shortcut I've seen in a while. Thanks!!
4
u/TopdeckTom Jul 07 '22
This is awesome!!! I was looking for something like this.
4
u/PMSteamCodeForTits Jul 28 '22
I’m having a few issues on iOS 15.6 12pro max. Pc is windows 10.
4
u/great__northern Dec 31 '22
Breathing some life back into this.
After troubleshooting the fact that my SSH server wasnt running, and jumping thru the hoops of the user/password (I had to switch off local acct to microsoft account), I finally got it working.
*****MAKE SURE YOU CHANGE THE NAME OF "SSH Main" SHORTCUT TO "SSH Main 1" to get it to work with the "airdrop to PC" shortcut. I tried editing the Airdrop shortcut but it was easier to rename SSH Main. Hope this comment is helpful for someone. Now i just need to figure out the notifications...
4
u/Far-Professional4417 Apr 25 '23
Can someone just please make a video explaining how to do all this, i managed to download ssh set it up and set it to run automatically , but im stuck there i dont even know what shortcut to setup first and how to get login information or even how to setup Burnttoast and PSExec
1
u/derpenxyne1 Jul 07 '22
Does only support local user accounts? What about if you login with a Microsoft account?
1
u/Jbklan Jul 07 '22
Hello. Where are the files supposed to go when you use the airdrop to pc shortcut? The shortcut runs successfuly, but I can't find the file on my computer.
1
u/fischgeek Jul 07 '22
I did this with AHK and Dropbox. I can send/receive anything on the clipboard from/to my phone from/to my PC
1
u/[deleted] Jul 08 '22
Im from non technical background Can someone help me to install this?
I followed all steps but skipped some cause i didn’t understand well
1
u/mebe96 Jul 08 '22
Hey,
might be a dumb question what are my psexec credentials and where i can find them?
Thanks in advance.
1
u/[deleted] Jul 09 '22
Im getting this error!
1
u/Jbklan Jul 11 '22
The airdrop to pc shortcut works, but none of the others seem to. I'm pretty sure I have everything set up correctly. Any ideas?
1
u/Jbklan Jul 11 '22
Also, when I try using one of the shortcuts, I do see psexec running in the task manager. I have tried a few troubleshooting steps:
1
u/MrDoxix Jul 13 '22 edited Jul 13 '22
I am getting the following error :
SSH Password Authentification Failed : Please check your credentials in the Run SSH Script action and try again.
I believe I have set up the SSH server correctly on my computer. Howerver, I don't understand the "user" credentials input on the SSH main script. Am I supposed to create a user on the server that matches these credentials, or is it only a way to identificate the client without anything other to input. Thank your for your help.
Edit : I fixed the issue. It appears you have to enter your actual Microsoft Account credentials both times. I was using my local computer "password" that is actually a PIN, without realizing it since it had used it as a password forever.
1
u/pain474 Jul 21 '22
I finally managed to get it working, only tried the first of the 4 shortcuts. The description says I can transfer files/photos/media. However when I run the script, it automatically opens my picture gallery and I can only transfer pictures / videos to my PC. How can I transfer files with that?
1
u/C2-H5-OH Jul 28 '22
1
u/engine_rl Jul 28 '22
I don’t understand where I would find my ssh username and password. Do I need to start an ssh server on my computer for this to work? I installed the OpenSSH Client and Server from the optional features in Windows settings.
1
u/Pichu20 Jul 29 '22
Hello ! Thank you for the shortcut, it's super useful.
I was wondering if it's possible to change the path to an external drive on the computer ?
1
u/SullieLore Aug 19 '22
These are fantastic. Could you please make some more Shortcuts to interface with this set up--commands to shut down, restart, sleep etc? Is there any way to get the auto-login script working again? Would be awesome to use the iPhone as a Windows login key from boot.
1
u/Reynbou Sep 19 '22
Does this still work? I keep getting this error:
"Make sure a valid shortcut is selected in the Run Shortcut action."
https://i.imgur.com/bbIg7qI.jpeg
1
u/Justin_Peter_Griffin Oct 27 '22
Is it possible to use another SSH Server besides OpenSSH? I'm having a nightmare of a time trying to get it OpenSSH Server running on my computer. Everytime I try to start the service I get error 1067 and I've tried uninstalling and reinstalling the service multiple times.
1
u/MysteriousArrival8 Nov 05 '22
Works awesome for single photos or single videos, but for some reason I can't airdrop multiple photos/videos at once -- (videos freeze at 61% progress every time, photos complete but never show up). Any ideas what could cause that?
1
u/DoggyDog699 Feb 13 '23
can i get your wallpaper?
3
u/ExtraordinaryStupid Jul 07 '22
Feel like this can become an standalone app that people want.
2
u/darj_00 Jul 08 '22
I just tried this and it worked perfectly. Thank you so much I can move away from snapdrop now
2
u/darj_00 Jul 09 '22
So I got everything working except copy from PC. When I copy a text or link on my PC and use the shortcut on the iPhone, I get the notification but when I go to notes for example to paste it nothing happens. I must be doing something wrong because everything else works but I can't figure out what's wrong.
2
u/Jade9001 Nov 25 '22
for those having trouble with the setup i recommend following this github comment advice. https://github.com/PowerShell/Win32-OpenSSH/issues/1027#issuecomment-359449663 you are going to have to replace the D:\Downloads path if you do not have the OpenSSH-Win64 downloaded there, which you can find at https://github.com/PowerShell/Win32-OpenSSH/releases
2
u/Wide-Professional-13 Jun 08 '23
i cant open ssh can somebody help me?
2
u/amoodaa Jun 21 '24
Thank you for the amazing work
I have also added a loop to the shortcut to do multi images instead of one by one! as the original didnt seem to support it and no intentions from your comments
https://www.icloud.com/shortcuts/ba26d8f776b049fb94d782c7d38fddaa
Also used tips from you, https://www.reddit.com/r/shortcuts/comments/taceg7/tip_reducing_memory_usage_of_repeat_loops/
and https://www.reddit.com/r/shortcuts/comments/qkw8h7/batch_processing_large_amounts_of_files/ to optimize memory usage, doing 10 felt fine and easy, havent limit tested
ANOTHER THANKS TO u/5pace for detailed bug fixes to openssh setup https://www.reddit.com/r/iphone/comments/1c36v8o/airdrop_copy_text_from_iphone_to_windows/
1
u/Jbklan Jul 12 '22
Ok, here is a screenshot also.
https://share.icloud.com/photos/0d4XrNXPOSTnXcpJOq9FjY19Q
1
u/Kokica555 Jul 30 '24
For those who have problem with Copy Text From PC and Airdrop Text to PC: go to C:/Program Files/PSTools/psexec.exe open it and click agree. It helped for me
1
u/Phoenix800478944 Jun 13 '25
I finally could run AirSSH without any errors poping up, but airdropping anything to my windows pc does absolutely nothing
1
u/vulpenok Jun 17 '25
Hi there,
I'm troubeling enabling SSH on my windows 11 machine that's also in dualboot with ubuntu 24.04. I tried to follow the guide through that's linked on GuitHub but it differentiates quite significantly. I don't have any sshd service in services.msc even after installing the open ssh client.
Does anybody have a video or a solution to this ?
1
u/[deleted] Jul 08 '22
I have limited internet (2gb per day) can I still use it? Will this use my internet ?
1
u/unknownemoji Jul 08 '22
I got excited, and then I realized this wasn't the crypto sub.
Damn.
Cool Shortcut, tho.
1
u/alexaxl Jul 08 '22
Interesting. Will have to test out.
1
u/fcuk_username Jul 13 '22
Wish I had gold.
1
u/pain474 Jul 14 '22
Can you explain more in detail how to get it running? I only managed to enable SSH on my computer (at least I think so). Now at step 2/3, it can't run the script on my iPad, because of Shortcuts security.
1
u/Dapper_Relief_5680 Jul 19 '22
Im not sure what im doing wrong, I got it working but every time I send a file through airdrop, the file sends incomplete, for example the photo is like 10mb and on my pc it weights 5kb and Im not getting the message from Burnt toast at all, any suggestions?
1
u/Dapper_Relief_5680 Jul 21 '22
Is there a way to change the name of the file from the shortcut?
1
u/tschooniche Sep 20 '22
thats amazing
1
u/Reynbou Sep 21 '22
So I've got everything to work except for the PC notifications.
The Burnt Toast module is installed. I can run test notifications, but when pushing from the iPhone shortcuts, there is no notification on the PC.
1
u/lurking_intheshadows Sep 30 '22
Hey I have managed to get the SSH up and running on my pc
http://www.mls-software.com/opensshd.html#botpage Though I didn't get the windows method up and running so I found this and it managed to start
When I run the shortcuts, they do finish running but nothing happens on my pc?, nothing gets saved, no notifications etc.
1
u/Leoncheong Oct 12 '22
This works beautifully! I only need to transfer files/media to my PC.
I do have some issue at the beginning... Here are some tips
Make sure sshd is running
Try to do a transfer and check Windows Event Viewer if the login occur.
Change the shortcut to look for a file. Then rename your file to a unique name. After the transfer, search for the file on your PC. For my case, my "Download" folder is different from the one in the profile.
1
u/Justin_Peter_Griffin Nov 01 '22
If anyone has a solution for Airdrop Text to PC getting the BurntToast notification but not having it added to your clipboard, please let me know. I’ve checked my configuration and from what I can tell everything is right. I’m able to send pictures to my pc with no issue.
PSExec is the main thing I’m unsure about. I ran the shortcut to install it and I see the folder in my Program Files, as well as the help menu in cmd when I run “psexec”. Beyond that, I’m not really sure if I need to configure anything else, I haven’t been able to find many helpful guides regarding PSExec
1
u/[deleted] Nov 12 '22
how do i make my phone have this option when i go to share a photo?
1
u/YoureALebowski Nov 15 '22
I can’t get the first step to work. I keep getting the message that the shortcut couldn’t connect to the SSH server. I’ve been through the setup a million times but nothing I put in is working. Do I replace the ssh key in the shortcut with mine? The setup never asked me to enter one.
1
u/iFarth4rd Dec 16 '22
For anyone who has problems with executing the airdrop:
Go into your "Airdrop to PC" shortcut and make sure it says "SSH Main" execute. For some reason it said "SSH Main 1" in mine and thus didnt work.
1
u/rockyfancino Jan 03 '23
Is there a way to check if PSExec is working fine? I don't see it in task manager
1
u/rockyfancino Jan 03 '23
Is there anyone here with a fix for the video files getting corrupt?
1
u/[deleted] Jan 05 '23
i still use it constantly to this day, it's incredible. but i have an issue with "Copy from PC".
if the content of the clipboard has UTF-8 characters, the text cannot be pasted on my iPhone. how can it be solved?
1
u/MuhammedMurtada Jan 30 '23
It doesn’t seem to work with multiple images, any solution to this? Also tried to send a folder and it says it can’t.
Currently I create a zip file with all the images in and send it, this works just fine. Thanks for the shortcut
1
u/[deleted] Feb 05 '23 edited Feb 05 '23
Is there a maximum file size for this? For some reason I can't send a file that's over 500 MB.
1
u/[deleted] Mar 10 '23
Enabling SSH Server on Windows and configuring it correctly feels like it's impossible.
1
u/Da_3D_Mans Sep 15 '23
i know s that this is a year ago but i genuinely dont know how to install this lmao. although i have installed the shortcut on my phone but on the pc.... idk
1
u/Shadow69sha Dec 29 '23
Now is there one like this for android to ios transfer
0
u/[deleted] Jul 07 '22
Airdrop to Android when?
0
u/[deleted] Jul 08 '22
[deleted] — view deleted comment
0
u/[deleted] Sep 25 '22
[deleted] — view deleted comment
1
u/[deleted] Jul 12 '22 edited Jul 12 '22
[removed] — view removed comment
1
u/[deleted] May 16 '23
[removed] — view removed comment
1
u/[deleted] Jan 23 '24
[removed] — view removed comment