Open StoppingBuck opened 6 years ago
I forgot to mention that it seems the push message with 'request approved, etc. etc.' actually arrived on the iPhone (/watch) but several minutes too late (at which point the ssh request has long since timed out)
I have an android device paired with osx and linux computers. I have experienced the same intermittent issue. I receive an authentication request on my Android, I approve the request. The requesting application continues to wait for response, eventually timing out or my impatience causes me to ^C :boom: I haven't been able to consistently reproduce the issue as it goes away when I retry the same command that triggered the authentication request.
@neeksor That doesn't sound completely like my issue, as in my case it's more like:
Krypton ▶ Requesting SSH authentication from phone
Krypton ▶ Request timed out. Make sure your phone and workstation are paired and connected to the internet and the Krypton app is running.
@StoppingBuck sorry for the issues you're experiencing. Are you always wearing your watch when this happens? The delayed notification delivery is not something we've seen before. One workaround to try would be to open the app when you make the request.
@neeksor this may have to do with android's doze mode power saving behavior. Have you tried disabling battery optimization for Krypton? There is a guide for how to do so here: https://www.greenbot.com/article/2993199/android/how-to-turn-off-doze-mode-for-specific-apps-in-android-marshmallow.html
@kcking - I will try that out. Thanks for the help.
I'm using Kryptonite on my iPhone paired with two computers - one MacOS and one Arch Linux.
I've noticed several times now where Krypton seems to time out for no apparent reason with the
Krypton ▶ Request timed out. Make sure your phone and workstation are paired and connected to the internet and the Krypton app is running
.In this case, I was using my Mac and had just allowed all requests for the next 3 hours (via push notification on my Apple Watch), and when a few minutes later I again try to use ssh, the request times out with this debug (I've censored the IP):
I know from experience that iOS can be a bit iffy about what apps get to run on the background, so my first thought was that perhaps it had suspended the Krypton app, but as mentioned I had just a few minutes before approved another request using my Apple Watch connected to that very same app, so I doubt that can be the case.
Also as mentioned this happens on and off throughout the day, and I haven't been able to find any pattern yet. When I tried the exact same command again a few minutes later everything worked perfectly again.