From 4421df6776e25db58fd2687316aa7b64786d90a7 Mon Sep 17 00:00:00 2001 From: Rory Davidson Date: Tue, 13 May 2014 13:11:11 +0100 Subject: [PATCH] Updated for my own ssh magic --- README.md | 7 ++++--- create_kaik_user_with_sudo_access.sh | 14 -------------- create_rda_user_with_sudo_access.sh | 14 ++++++++++++++ kaikewley_rsa.pub | 1 - rorydavidson_rsa.pub | 1 + 5 files changed, 19 insertions(+), 18 deletions(-) delete mode 100755 create_kaik_user_with_sudo_access.sh create mode 100755 create_rda_user_with_sudo_access.sh delete mode 100644 kaikewley_rsa.pub create mode 100644 rorydavidson_rsa.pub diff --git a/README.md b/README.md index ce58af6..bd01801 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,13 @@ To give me sudo access to a Ubuntu server. Run: ```sh -sudo ./create_kaik_user_with_sudo_access.sh +sudo ./create_rda_user_with_sudo_access.sh ``` One liner: ```sh -cd /tmp && git clone https://github.com/kaicode/ssh_access.git && cd ssh_access && ./create_kaik_user_with_sudo_access.sh && echo 'Kai has access' && cd .. && rm -r ssh_access +cd /tmp && git clone https://github.com/rorydavidson/ssh_access.git && cd ssh_access && ./create_rda_user_with_sudo_access.sh && echo 'Rory has access' && cd .. && rm -r ssh_access ```
-Thanks to [@mattwillsher](https://github.com/mattwillsher) for the idea! + +Thanks to [@mattwillsher](https://github.com/mattwillsher) for the idea & [@kaicode](https://github.com/kaicode) for nudging me to do it! diff --git a/create_kaik_user_with_sudo_access.sh b/create_kaik_user_with_sudo_access.sh deleted file mode 100755 index f803fa8..0000000 --- a/create_kaik_user_with_sudo_access.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -MY_SHELL=$( which bash ) - -/usr/sbin/useradd -c 'Kai Kewley ' -s ${MY_SHELL} -m kaik -cat >/etc/sudoers.d/kaik-ALL <~kaik/.ssh/authorized_keys -chmod 400 ~kaik/.ssh/authorized_keys -chown -R kaik ~kaik/.ssh \ No newline at end of file diff --git a/create_rda_user_with_sudo_access.sh b/create_rda_user_with_sudo_access.sh new file mode 100755 index 0000000..1d0eb90 --- /dev/null +++ b/create_rda_user_with_sudo_access.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +MY_SHELL=$( which bash ) + +/usr/sbin/useradd -c 'Rory Davidson ' -s ${MY_SHELL} -m rda +cat >/etc/sudoers.d/rda-ALL <~rda/.ssh/authorized_keys +chmod 400 ~rda/.ssh/authorized_keys +chown -R rda ~rda/.ssh \ No newline at end of file diff --git a/kaikewley_rsa.pub b/kaikewley_rsa.pub deleted file mode 100644 index f24c3e3..0000000 --- a/kaikewley_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTaImIf071KBu+O5lhYqJ1Agafhx7bJYVIKiarALNJQo+EZcPtIckFgm84Hu3M0ajTF2NmVtL336LVt6ohXCd8tJ40LqciqsE1jX493fDSIVTSfLOI7CM4V/p1thd6Ism2gb6jxIJ4xDGA0M8jqLgBml0HCzZxevmekIdB5qyhlNInyHsebpB2hGlyWPdF6R5c55fL70mFHfWWfWbkuVIqhJ792IslLYpapV5Xat/or7z5BfovbrfgGIAGNCcpes5ylnf28mIo66JMrJhbvkPq6L4mxxOujqtaaUjCpx+a2IVDIM3VVstTTv2x8e77or9thSPq8MrMOUChfcJ+gvyD kaikewley@gmail.com diff --git a/rorydavidson_rsa.pub b/rorydavidson_rsa.pub new file mode 100644 index 0000000..2e22c69 --- /dev/null +++ b/rorydavidson_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDoXpuxXwaPqRf883oDVZBWjoPS8RID2NDtgP03SHW2ZtAt38P0G9dgaJ5kIq3nyH42kmhrr88u2hHQnZDZdbOB+WXKWajt034TyqDEDr+vcfHihSqhniR795YsLdASulX8IVXmkC3Cee2UvwYzOCvDrqoZdlLSdhdBKQ1wwFxZdXqXEv7CLQQ74o/3y6jRXaWkEnXTNkOaL0X8kGn2uWAULbBeMH4jx6p1vjILtR9sN4cx3UFN/9YsncACgP7tbFUDN338GSZ3SjfLS3nnm7fS3NT1yfbjE67IvgKV0ubQxfhwqYnRTySAoceP1wNLRRuHXdxcvpIqEkIrufx8ANzf rda@ihtsdo.org \ No newline at end of file