Better Terminal Emualtor Pro SSH Client

Overview

Better Terminal Emualtor Pro includes the DropBear SSH Client.

Launching from the Command Line

It can be launched from the BTEP terminal window command line as follows:

$ ssh username@hostname[:port]

Using the GUI Front End

For convenience, it can also be launched through the BTEP SSH Client Launcher.<br> Screenshot SSH Client.png

Creating Shortcuts

In addition, Shortcuts can easily be added to the home screen to invoke the BTEP Telnet/SSH Client.

Using SSH with Keys

You can use Public/Private Keys with the SSH Client to log into your SSH Server. At this time, you will need to run the BTEP SSH Client from your Android device's Linux prompt using Better Terminal Emulator Pro. I will add this functionality to the GUI for the next update to BTEP.

Creating a Key

  1. Open Better Terminal Emulator Pro and change to your $HOME/.ssh/ directory:

Thank you for using Better Terminal Emulator Pro

/ $ cd
~/data/com.magicandroidapps.bettertermpro/home $ cd .ssh
~/data/com.magicandroidapps.bettertermpro/home/.ssh $ ll
drwx------    1 app_24   app_24        2048 May 12 10:39 .
drwxrwxrwx    1 app_24   app_24        2048 May 12 10:39 ..
-rw-rw-rw-    1 app_24   app_24         220 May 12 10:39 known_hosts

2. Generate a key with dropbearkey:

~/data/com.magicandroidapps.bettertermpro/home/.ssh $ dropbearkey -t rsa -f identity

Will output 1024 bit rsa secret key to identity

Generating key, this may take a while...
Public key portion is:
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgwCICmahhwXoOtFCO1AoXzvoDig4NdGBsZWrLvpUYw4VjRrQG5ZAbpqk1sLTG6WszXlwfuxm7t9nrg4cT89M9QgxyrtV5KiNzrMpobiVWm6zDuZn4vhuUxfoilp4E0x2tjdef95cxrg7xdJWEanYg95xKpaJMJDkD96ptFMS7pARTRwB
app_24@localhost
Fingerprint: md5 48:a2:e0:a9:bd:5c:7a:af:4b:63:d0:28:f9:61:27:54%%

3. Save the public part to a the file identity.pub

~/data/com.magicandroidapps.bettertermpro/home/.ssh $ dropbearkey -t rsa -f identity -y >identity.pub

Uploading the Key to your SSH Server

1. Copy the public key to your SSH Server with <tt>scp</tt>:

~/data/com.magicandroidapps.bettertermpro/home/.ssh $ scp identity.pub hharte@192.168.0.1:./identity.pub
Login for hharte@192.168.0.1
Password:
identity.pub                                  100%  318     0.3KB/s   00:00

2. Log into your SSH Server using your password and configure your key:

~/data/com.magicandroidapps.bettertermpro/home/.ssh $ ssh hharte@192.168.0.1
Login for hharte@192.168.0.1
Password:
Last login: Wed May 12 10:35:14 2010
NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30 01:39:11 UTC 2009
Welcome to NetBSD!
castor$ ll
total 4
-rw-r--r--  1 hharte  users  318 May 12 10:39 identity.pub
castor$ cd .ssh
castor$ touch authorized_keys
castor$ chmod 600 ./authorized_keys
castor$ cat ../identity.pub >./authorized_keys
castor$ rm ../identity.pub 
castor$ ^D

Login to your SSH Server using your Key

1. Log into your SSH Server using your Key:

~/data/com.magicandroidapps.bettertermpro/home/.ssh $ ssh hharte@192.168.0.1 -i identity
Last login: Wed May 12 10:42:36 2010
NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30 01:39:11 UTC 2009
Welcome to NetBSD!
castor$

2. Log out and return back to your phone's shell:

castor$ ^D
~/data/com.magicandroidapps.bettertermpro/home/.ssh $
ssh_client.txt · Last modified: 2013/03/28 20:24 by 216.31.219.19
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki