[wplug] weird rsync error

Zach netrek at gmail.com
Wed Mar 19 18:56:32 EST 2008


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):

OpenSSH_4.2p1 Debian-7ubuntu3, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to unix.club.cc.cmu.edu [128.237.157.20] port 22.
debug1: Connection established.
debug1: identity file /home/ubuntu/.ssh/identity type -1
debug1: identity file /home/ubuntu/.ssh/id_rsa type -1
debug1: identity file /home/ubuntu/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.8.1p1 Debian-krb5 7+cclub.012.2
debug1: match: OpenSSH_3.8.1p1 Debian-krb5 7+cclub.012.2 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'unix.club.cc.cmu.edu' is known and matches the RSA host key.
debug1: Found key in /home/ubuntu/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
gssapi-with-mic,publickey,gssapi,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ubuntu/.ssh/identity
debug1: Trying private key: /home/ubuntu/.ssh/id_rsa
debug1: Offering public key: /home/ubuntu/.ssh/id_dsa
debug1: Authentications that can continue:
gssapi-with-mic,publickey,gssapi,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue:
gssapi-with-mic,publickey,gssapi,password,keyboard-interactive
debug1: Next authentication method: password
chaos at unix.club.cc.cmu.edu's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: mkdir ~/.ssh ; cat >~/.ssh/authorized_keys
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: Killed by signal 2.

Zach


More information about the wplug mailing list