User Tools

Site Tools


ezdownload

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ezdownload [2014/07/18 15:36] (current)
Line 1: Line 1:
 +=====  Easy Download ​ =====
 +
 +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
 +
 +Works:
 +
 +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.
 +
 +On dmach:
 +<​code>​
 +  rsync -auv -e ssh dancing@macnash.telfer.uottawa.ca:/​home/​dancing/​00_dancing dancing/</​code>​
 +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)
 +
 +<​code>​
 +  #!/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</​code>​
 +
 +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.
 +
 +No joy.
  
ezdownload.txt ยท Last modified: 2014/07/18 15:36 (external edit)