https://github.com/tankibaj/ssh
Personal SSH Public Key
https://github.com/tankibaj/ssh
Last synced: 5 months ago
JSON representation
Personal SSH Public Key
- Host: GitHub
- URL: https://github.com/tankibaj/ssh
- Owner: tankibaj
- Created: 2020-02-20T14:50:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-02T20:16:02.000Z (over 3 years ago)
- Last Synced: 2025-02-17T21:36:54.352Z (8 months ago)
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Create a new sudo user
```bash
sudo adduser naim && \
sudo usermod -aG sudo naim && \
sudo bash -c "echo 'naim ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers" && \
su - naim
sudo apt update
```## Import SSH Key
```bash
mkdir ~/.ssh && \
wget --no-check-certificate 'https://raw.githubusercontent.com/tankibaj/ssh/master/id.pub' -O ~/.ssh/authorized_keys && \
sudo chmod 700 ~/.ssh/ && sudo chmod 600 ~/.ssh/authorized_keys &&\
sudo chown -R naim /home/naim/
```