milis/bin/ssh_id_ekle.sh
2018-08-29 15:21:51 +03:00

2 lines
125 B
Bash
Executable file

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