![]() |
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Quote:
Interesting concept. For the record, I'm on T-Mobile here in the US. |
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Great GUIDE!
|
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Quote:
Think of this as a fallback option. That's why it has single line (easily copy+pasted) commands in it. |
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Really useful tutorial, didn't had a clue till now how I can make it vibrating with commands, or how to make a call that way and stuff, thanks :)
The only part which I can't get working is: Quote:
|
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Quote:
|
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Quote:
It got me thinking though, if instead of the "write ip to a file" line in the if-up script you put a reverse port forward like: Code:
ssh -R 2210:localhost:22 [yourserver] Might be worth trying out. |
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Quote:
|
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Quote:
|
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
Excellent collections of one liners synthaxx, here is what I modified:
Writing your IP to a file does not really have anything to do with ping reply, so for better abstraction I created a new file instead of editing /etc/network/if-up.d/00_disable_icmp_echo_reply I named it /etc/network/if-up.d/10_send_ip Code:
#!/bin/sh Code:
scp -F /home/user/.ssh/config /tmp/n900ip You can also skip saving the IP to a file by changing the file 10_send_ip to: Code:
#!/bin/sh |
Re: N900 physical recovery (Getting your phone back!) [HOWTO]
@ecksun
Thanks! I was just trying to get this to go directly to an ssh session, and yours works very nicely. I agree that putting it in the disable echo reply script is not the prettiest method, but since that script will only execute with an external connection it'd do for now. Got me thinking too. What if you have the script checking for a specific file, something like "stolen" on your server. If that file exists, start a reverse portforward. That way, if you make that file it'll start an ssh which allows people that don't have direct access to the ssh session via their public ip to still access it remotely. |
All times are GMT. The time now is 17:08. |
vBulletin® Version 3.8.8