ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub root@ip
sshplus rename to sshplus.py
If there is no icon, change:
ind = appindicator.Indicator("simplestarter", "network-transmit-receive",
ssh -o PreferredAuthentications=password user@host.com
You can find the binaries here.
zcat rsync-3.0.6-arm-softfloat-linux-gnueabi.gz > rsync
rsync to your phone, make sure it’s in the PATH and chmod 755 rsync. I have put mind to QuickSSH’s homedir (/data/data/com.teslacoilsw.quicksshd/dropbear or /data/data/berserker.android.apps.sshdroid/dropbear).Here are a few examples that can be scripted.
Initiate a backup from your phone:
rsync -e "ssh -p <port>" -vrt <local-source> <user>@<server>:/<path> e.g. rsync -e "ssh -p 443" -vrt /mnt/sdcard/astrid me@<my-ip>:/home/me/temp
Initiate a backup from your server:
rsync rsync -vrt -e "ssh -p <port>" <user>@<phone>:/<path> <local-dest> e.g. rsync -vrt -e "ssh -p 2222" <user>@android:/mnt/sdcard/astrid /home/me/temp source source2
1. Create a dsa-key-pair on your linux client
ssh-keygen -t dsa -f id_dsa-android
Note: I named the key id_dsa-android because that’s my own convention
2. Copy the public key to your Android device
scp -P 2222 id_dsa-android.pub <your-ip-goes-here>:/sdcard
Note: This assumes you have password enabled and sshd running on port 2222
3. Validate the public key
cat /sdcard/id_dsa-android.pub >> /data/data/com.teslacoilsw.quicksshd/home/.ssh/authorized_keys
Note: Validating means in this case to copy the pubkey to authorized_keys (it’s located in /data/data/com.teslacoilsw.quicksshd/home/.ssh)
4. Configure Go to your QuickSSHD settings and remove the checkbox Password and check Shared Keys (If you did right the key added to authorized_keys should be listed right under the checkbox.
5. Test
ssh -i <your-home-goes-here>/.ssh/id_dsa-android -p 2222 <your-ip-goes-here>
If everything went fine you should get:
Enter passphrase for key '/home/sven/.ssh/id_dsa-android' source
Subsystem sftp internal-sftp
Match Group sftponly
ChrootDirectory %h
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
source
add user to fuse group
$ sshfs server:/path/ /media/path/
pssh provides parallel versions of the OpenSSH tools that are useful for controlling large numbers of machines simultaneously. It includes parallel versions of ssh, scp, and rsync, as well as a parallel kill command.
[user@box]$ echo -en "\033[1;34m" > /etc/motd
[user@box]$ echo "Text of your motd file....." >> /etc/motd
[user@box]$ echo -en "\033[0m" >> /etc/motd