Created
March 14, 2026 12:35
-
-
Save Higor-Matos/88c46a6356a6a09fedd692625c827640 to your computer and use it in GitHub Desktop.
Ubuntu SSH setup for 192.168.24.27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ubuntu: liberar SSH no host 192.168.24.27 | |
| Rode no Ubuntu: | |
| sudo apt update | |
| sudo apt install -y openssh-server | |
| sudo systemctl enable --now ssh | |
| sudo systemctl status ssh --no-pager | |
| ss -lntp | rg ':22' | |
| Se usar ufw: | |
| sudo ufw allow 22/tcp | |
| sudo ufw reload | |
| sudo ufw status | |
| Para conferir IP local: | |
| hostname -I | |
| ip a | |
| Se o usuario higor ainda nao existir: | |
| sudo adduser higor | |
| sudo usermod -aG sudo higor | |
| Se precisar permitir login por senha, edite: | |
| sudo nano /etc/ssh/sshd_config | |
| Garanta: | |
| PasswordAuthentication yes | |
| PermitRootLogin no | |
| Depois: | |
| sudo systemctl restart ssh | |
| Teste do Mac: | |
| ssh higor@192.168.24.27 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment