rename README files for easier finding in tabs
This commit is contained in:
@@ -23,19 +23,7 @@ ssh-keygen -t rsa -b 4096 -C ducoterra@${SSH_HOST}.reeselink.com -f ~/.ssh/id_${
|
|||||||
# Note: If you get "too many authentication failures" it's likely because you have too many private
|
# Note: If you get "too many authentication failures" it's likely because you have too many private
|
||||||
# keys in your ~/.ssh directory. Use `-o PubkeyAuthentication` to fix it.
|
# keys in your ~/.ssh directory. Use `-o PubkeyAuthentication` to fix it.
|
||||||
ssh-copy-id -o PubkeyAuthentication=no -i ~/.ssh/id_${SSH_HOST}_rsa.pub ducoterra@${SSH_HOST}.reeselink.com
|
ssh-copy-id -o PubkeyAuthentication=no -i ~/.ssh/id_${SSH_HOST}_rsa.pub ducoterra@${SSH_HOST}.reeselink.com
|
||||||
|
ssh -i ~/.ssh/id_${SSH_HOST}_rsa -o 'PubkeyAuthentication=yes' ducoterra@${SSH_HOST}.reeselink.com
|
||||||
cat <<EOF >> ~/.ssh/config
|
|
||||||
|
|
||||||
Host $SSH_HOST
|
|
||||||
Hostname ${SSH_HOST}.reeselink.com
|
|
||||||
User root
|
|
||||||
ProxyCommand none
|
|
||||||
ForwardAgent no
|
|
||||||
ForwardX11 no
|
|
||||||
Port 22
|
|
||||||
KeepAlive yes
|
|
||||||
IdentityFile ~/.ssh/id_${SSH_HOST}_rsa
|
|
||||||
EOF
|
|
||||||
```
|
```
|
||||||
|
|
||||||
On the server:
|
On the server:
|
||||||
@@ -50,12 +38,25 @@ passwd
|
|||||||
sudo su -
|
sudo su -
|
||||||
echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/01-prohibit-password.conf
|
echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/01-prohibit-password.conf
|
||||||
echo '%sudo ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/01-nopasswd-sudo
|
echo '%sudo ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/01-nopasswd-sudo
|
||||||
systemctl restart sshd
|
systemctl restart ssh
|
||||||
```
|
```
|
||||||
|
|
||||||
On the operator:
|
On the operator:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
cat <<EOF >> ~/.ssh/config
|
||||||
|
|
||||||
|
Host $SSH_HOST
|
||||||
|
Hostname ${SSH_HOST}.reeselink.com
|
||||||
|
User root
|
||||||
|
ProxyCommand none
|
||||||
|
ForwardAgent no
|
||||||
|
ForwardX11 no
|
||||||
|
Port 22
|
||||||
|
KeepAlive yes
|
||||||
|
IdentityFile ~/.ssh/id_${SSH_HOST}_rsa
|
||||||
|
EOF
|
||||||
|
|
||||||
# Test if you can SSH with a password
|
# Test if you can SSH with a password
|
||||||
ssh -o PubkeyAuthentication=no ducoterra@${SSH_HOST}.reeselink.com
|
ssh -o PubkeyAuthentication=no ducoterra@${SSH_HOST}.reeselink.com
|
||||||
|
|
||||||
@@ -114,7 +115,7 @@ On the server:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install glances for system monitoring
|
# Install glances for system monitoring
|
||||||
apt install -y glances
|
apt install -y glances net-tools vim
|
||||||
|
|
||||||
# Install zsh with autocomplete and suggestions
|
# Install zsh with autocomplete and suggestions
|
||||||
apt install -y zsh zsh-autosuggestions zsh-syntax-highlighting
|
apt install -y zsh zsh-autosuggestions zsh-syntax-highlighting
|
||||||
Reference in New Issue
Block a user