Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 15:28:02 -0600
From:      dweimer <dweimer@dweimer.net>
To:        Mark Felder <feld@freebsd.org>
Cc:        owner-freebsd-stable@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: ssh-copy-id
Message-ID:  <ea6804d070e9b2e4393eaca2fa45d938@dweimer.net>
In-Reply-To: <1393618827.9046.89104957.4A974C56@webmail.messagingengine.com>
References:  <2cba8fd9cc51dedc1bd5e127046f4ab7@dweimer.net> <1393618827.9046.89104957.4A974C56@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/28/2014 2:20 pm, Mark Felder wrote:
> I modified it like this:
> 
>                         echo "alg $alg"
>                         echo "key $key"
>                         echo "comment $comment"
>                         printf "$alg $key $comment\n" >> "$keyfile" ; \
> 
> 
> so I could see where printf was breaking. It's breaking on the first 
> one
> -- $alg
> 
> Unmatched '.
> key: Undefined variable.
> comment: Undefined variable.
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to 
> "freebsd-stable-unsubscribe@freebsd.org"

ok, now I feel kinda stupid....  um it was breaking because of the 
-----BEGIN RSA PRIVATE KEY----- at the beginning of ~/.ssh/id_rsa... 
then i thought, wait I am suppose to send my public key, not the private 
one.

it works right if you use ssh-copy-id -i ~/.ssh/id_rsa.pub

sorry Mark, didn't mean to waste your time looking at this...

-- 
Thanks,
    Dean E. Weimer
    http://www.dweimer.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ea6804d070e9b2e4393eaca2fa45d938>