milis/bin/ssh_id_ekle.sh

3 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"