ssh_id_ekle

This commit is contained in:
milisbir 2018-08-29 15:21:51 +03:00
parent 04112af61e
commit e16b3ed6f8
1 changed files with 2 additions and 0 deletions

2
bin/ssh_id_ekle.sh Executable file
View File

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