WalaWiki content from p1k3.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
690 B

  1. <[[Brennen]]> WareLogging. [http://blogs.thegotonerd.com/maelstrom/archives/000509.html Stolen] from Alan. "Transfer your ssh public key to a remote host for passwordless logins in one line":
  2. cat ~/.ssh/id_rsa.pub | ssh hostname "cat >> ~/.ssh/authorized_keys"
  3. Or as a script:
  4. #!/bin/bash
  5. cat ~/.ssh/id_rsa.pub | ssh $1 "cat >> ~/.ssh/authorized_keys"
  6. Then just do
  7. copykey.sh hostname
  8. If you don't *have* a key, you'll need to do something like:
  9. ssh-keygen
  10. See also: http://mah.everybody.org/docs/ssh
  11. <[Brennen]> http://www.unixwiz.net/techtips/ssh-agent-forwarding.html
  12. <[Brennen]> Of course, you could also just use ssh-copy-id(1), if it's available.