[wplug] weird rsync error

Tom Rhodes trhodes at FreeBSD.org
Wed Mar 19 21:39:12 EST 2008


On Wed, 19 Mar 2008 19:56:32 -0400
Zach <netrek at gmail.com> wrote:

> On Wed, Mar 19, 2008 at 7:25 PM, Tom Rhodes <trhodes at freebsd.org> wrote:
> >
> >  # ssh-keygen -t dsa -C ''
> >  # ssh BACKUP_SERVER 'mkdir ~/.ssh ; cat >~/.ssh/authorized_keys' <~/.ssh/id_dsa.pub
> >
> >  scp -C doxygen.diff
> >
> >  Unless you have no choice but to use rsync.  But from a quick
> >  skim of your previous replies - it's rsync over ssh.
> 
> Hi Tom,
> 
> Is there something wrong with the syntax because the command it is trying is:
> 
> debug1: Sending command: mkdir ~/.ssh ; cat >~/.ssh/authorized_keys
> 
> It doesn't appear to be including the last bit: <~/.ssh/id_dsa.pub
> 
> Here is exactly what I entered:
> 
> ubuntu at ubuntu:~/Desktop$ ssh-keygen -t dsa -C ''
> Generating public/private dsa key pair.
> Enter file in which to save the key (/home/ubuntu/.ssh/id_dsa):
> Enter passphrase (empty for no passphrase):
> Enter same passphrase again:
> Your identification has been saved in /home/ubuntu/.ssh/id_dsa.
> Your public key has been saved in /home/ubuntu/.ssh/id_dsa.pub.
> The key fingerprint is:
> d0:fb:64:22:b1:2f:af:af:5c:cc:9b:ac:60:ed:69:6e
> 
> ubuntu at ubuntu:~/Desktop$ ssh -v chaos at unix.club.cc.cmu.edu 'mkdir
> ~/.ssh ; cat >~/.ssh/authorized_keys' < ~/.ssh/id_dsa.pub
> 
> And here is the output (I waited a few minutes then killed the job):
> 
[SNIP]: debug data.

That's very interesting - I've only seen that issue on OpenSolaris
but I guess it can happen here as well.  Run this:

scp id_dsa.pub username at host:~/.ssh/authorized_keys

Should have also noted that I'm assuming sshd on the server is
allowing keys - though, if it isn't, you should be able to just
create your own ssh_config locally and overwrite.  But we'll
cross that bridge when we come to it.

When you've done the above, try to ssh into the remote server
you've copied that file too.  If you get a password prompt,
try using:

ssh -i ~/.ssh/id_dsa user at host

and see if it works for you.  :)

-- 
Tom Rhodes


More information about the wplug mailing list