On Tuesday 19 November 2013 08:01:23 Robert Park wrote:
> On Tue, Nov 19, 2013 at 12:47 AM, Michael Zanetti
> 
> <michael.zane...@canonical.com> wrote:
> > alias sd='adb forward tcp:2222 tcp:22; ssh-keygen -f ~/.ssh/known_hosts -R
> > [localhost]:2222; ssh -o UserKnownHostsFile=/dev/null -o
> > StrictHostKeyChecking=no phablet@localhost -p 2222'
> 
> Hmmm, this is really nice, much better than having to fiddle with
> fixterm, or having to remember/type the IP address of the device ;-)
> 
> I extended it to just start ssh for me each time; it's harmless to
> start ssh when it's already running, and I am rebooting so constantly
> that it's easier to have it all in one command:
> 
> alias sd='adb shell start ssh; \
>     adb forward tcp:2222 tcp:22; \
>     ssh-keygen -f ~/.ssh/known_hosts -R [localhost]:2222; \
>     ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
>         phablet@localhost -p 2222'
> 
> Care to add this to the Ask Ubuntu page? I'll vote for it!
> 
> http://askubuntu.com/a/372650/77635

Done. I've put your version there as for regular Joe it's even simpler than my 
version. Thanks for that.

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to