From e16b3ed6f8c87fb8d68f62a13de01d60f845940c Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 29 Aug 2018 15:21:51 +0300 Subject: [PATCH] ssh_id_ekle --- bin/ssh_id_ekle.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 bin/ssh_id_ekle.sh diff --git a/bin/ssh_id_ekle.sh b/bin/ssh_id_ekle.sh new file mode 100755 index 000000000..3460be688 --- /dev/null +++ b/bin/ssh_id_ekle.sh @@ -0,0 +1,2 @@ +#!/bin/bash +[ $1 ] && cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"