linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux [2026/03/01 19:37] – reddy | linux [2026/03/01 20:25] (current) – reddy | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Popular Topics ===== | ===== Popular Topics ===== | ||
| + | * [[bash]] | ||
| + | * [[bind]] | ||
| * [[Docker]] | * [[Docker]] | ||
| + | * [[diff]] | ||
| * [[Git]] | * [[Git]] | ||
| * [[rsync]] | * [[rsync]] | ||
| Line 82: | Line 85: | ||
| </ | </ | ||
| - | ==== ssh-copy-id: Auth with another key ==== | + | ==== ssh-copy-id ==== |
| < | < | ||
| ssh-keygen -f key_file_name | ssh-keygen -f key_file_name | ||
| + | |||
| + | # To make it non-interactive (we cannot pass the StrictHostKeychecking so we direct the " | ||
| + | sshpass -p mypassword ssh-copy-id -i key_file_name.pub myuser@myserver <<< | ||
| # ssh-copy-id doesn' | # ssh-copy-id doesn' | ||
| # ...but it passes along options to ssh | # ...but it passes along options to ssh | ||
| ssh-copy-id -i ~/ | ssh-copy-id -i ~/ | ||
| - | |||
| - | # To make it non-interactive (we cannot pass the StrictHostKeychecking so we direct the " | ||
| - | sshpass -p mypassword ssh-copy-id -i key_file_name.pub myuser@myserver <<< | ||
| # This can also be done with ssh-agent | # This can also be done with ssh-agent | ||
linux.1772390260.txt.gz · Last modified: by reddy
