3 lines
125 B
Bash
3 lines
125 B
Bash
|
#!/bin/bash
|
||
|
[ $1 ] && cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"
|