Skip to content

Instantly share code, notes, and snippets.

@Higor-Matos
Created March 14, 2026 12:35
Show Gist options
  • Select an option

  • Save Higor-Matos/88c46a6356a6a09fedd692625c827640 to your computer and use it in GitHub Desktop.

Select an option

Save Higor-Matos/88c46a6356a6a09fedd692625c827640 to your computer and use it in GitHub Desktop.
Ubuntu SSH setup for 192.168.24.27
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