0

I haven't yet found any definitive answer on this using google.

It seems like the answer is no, but I need to know for sure before I go ahead and do it.

Does ssh-copy-id append the key to authorized_keys or does it overwrite the previous keys?

Thanks.

Addendum:

So the answer is right there in the man page. Go figure.

I guess the question can at least help fellow Google-jockeys like me who get a little too used to googling and finding tutorials (that often explain things in layman's terms for us poor folks who have only used Windows our whole lives).

1
  • 3
    You should learn to read the man pages. They contain useful information.
    – user9517
    Nov 12, 2013 at 7:46

2 Answers 2

4

No, it appends.

http://linux.die.net/man/1/ssh-copy-id

ssh-copy-id is a safe operation.

0
7

man ssh-copy-id says:

By default it adds the keys by appending them to the remote
user's ~/.ssh/authorized_keys (creating the file, and directory, if necessary).
0

Not the answer you're looking for? Browse other questions tagged .