This relies on passwordless logins to a Secure Shell (ssh protocol). * WE HAVE NOT YET SUCCEEDED WITH THIS ON GoDaddy. JN 140718 *
Problems with no-password ssh login
Copy id_jn0805_rsa.pub and cat » to authorized_keys2 in /home/dancing/.ssh on nsrv. Created new id on dmach, added to authorized_keys2. OK
Seems to need file named id_rsa and authorized_keys2 on server. Other names not useful unless used with -i (filename), which does NOT have to be in .ssh. But seem to need some sort of concordance that is NOT clear in permissions and users.
rsync -auv -e ssh firstname.lastname@example.org:/home/dancing/00_dancing dancing/
will update files.
However, problems on eee701 with writing to vfat sd card. Managed fine with sshfs (once set up ok). Also had trouble generating key, so copied key from eee901 id_rsa and worked ok. Seems to be need to remount (see remounter)
#!/bin/bash # remount sd card /dev/sdb1 on /media/sd sudo umount /dev/sdb1 sudo mount -t vfat -o rw,noatime,dmask=0000,fmask=0000 /dev/sdb1 /media/sd
BUT fmask and dmask likely not correct.
Does not work:
added user on Eee900 “dancing”,
log in as dancing (from terminal)
ssh-keygen id_rsa etc.
sftp to nsrv dancing and upload pub key
ssh to cat to authorized_keys2 and chmod to 600.