Re: Make SFTP use identity file instead of password?
Roger <[email protected]> Fri, 14 Jan 2011 15:23:21 -0900
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
>On Fri, Jan 14, 2011 at 03:48:34AM -0900, Roger wrote: >---snip--- >File: local=about/beanyweeny.html stored=., new >Time: 1114586764/0 Size: 0/0ASCII:n/n Perms:644/000 >Reading info file: /home/stud/.sitecopy/mysite >sitecopy: Updating site `mysite' (on somewhere.overthehill.org in /my/remote/folder/) >Creating about/: SFTP: 'mkdir /my/remote/folder/about' >sftp exec: scp -i /home/joeblow/.ssh/id_you_wishy_washy [email protected]: No such file or directory >SFTP: 'mkdir /my/remote/folder/joeblow/about' >SFTP: 'mkdir /my/remote/folder/joeblow/files' >---snip--- > >Even after creating the (wonderful) netrc and/or ~/.sitecopy/p* files, >still seeing this error. Just to reiterate, this error seems to cause further errors with unable to make directories/folders on the remote server. Initial usage of strace really didn't show too much more. But I think I see what's happening now, scp is trying to copy "no files or folders to [email protected]: without specifying a remote folder? But then SFTP picksup back up with mkdir on the remote. ...confusing output. (Due to the overhead of encryption on low-bandwidth, just using unencrypted for the time being.) File sitecopyrc: ---snip--- site blah server oh.somewhere.over.the.hill.org protocol sftp rsh "ssh -i /home/joeblow/.ssh/id_you_wishy_washy" rcp "scp -i /home/joeblow/.ssh/id_you_wishy_washy" username joeblow local /my/folder/ remote /my/remote/folder/ permissions all ---snip--- -- Roger http://rogerx.freeshell.org/