ssh_id_ekle.sh 125 B

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