DEV Community

rafaone
rafaone

Posted on

Dicas de Terminal e SSH

Algumas dicas para ter um pouco mais de segurança no seu terminal, principalmente de uma segurança espacial no sentido do seu entorno e em conexões ssh.

  • Use customizador de prompt como starship, nele é possível ocultar o nome da maquina e do usuário, podendo customizar de acordo com seu uso podendo criar seu próprio padrão.

Image description

  • Evite ter login por senha em seu servidor SSH, estude sobre chaves ssh mantenha ela em local criptografado e use uma passphrase;

  • Configure seu .ssh/config com seus host, portas e nome de usuário.
    vai sair disso "ssh -p7642 usexpto@server.com" para "ssh server.com".

Image description

  • Mude a porta do seu SSH, isso ajuda mas não resolve os ataques.
  • Se não consegue por um acesso somente por VPN, se possível implemente um "Port Knocking". #dicas #linux #ssh #terminal

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay