ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #05185
Re: Any tips on getting more usable terminal settings with 'adb shell'?
On Tuesday 19 November 2013 08:01:23 Robert Park wrote:
> On Tue, Nov 19, 2013 at 12:47 AM, Michael Zanetti
>
> <michael.zanetti@xxxxxxxxxxxxx> 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.
Follow ups
References