This commit is contained in:
2024-04-01 10:40:20 +02:00
parent 5152f44924
commit 8a7c4f3724
154 changed files with 100 additions and 0 deletions

28
SSH/readme.md Normal file
View File

@ -0,0 +1,28 @@
# Edit Hosts File
```
sudo nano /etc/ansible/hosts
```
# Fix SSH Key Permissions
```
chmod 600 ~/.ssh/ansible
```
# Ansible Ping Command
```
ansible all -m ping
```
# Create SSH Key
```
ssh-keygen -t ed25519 -C "ansible"
```
# Copy SSH Key
```
ssh-copy-id -i ~/.ssh/ansible.pub 192.168.200.50
```
# Ansible Ping Command With New SSH Key
```
ansible all -m ping --key-file ~/.ssh/ansible
```