Página Inicial > Linux > Mudando a porta padrão do servidor de SSH

Mudando a porta padrão do servidor de SSH

Dica rápida, edite o arquivo de configuração do ssh.

# vim /etc/ssh/sshd_conf

Procure a linha Port.


# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

Na linha Port 22 basta modificar :) se quiser deixar a porta 9999 ao invés da porta default(22) basta alterar para:

#Port 9999

Após a modificação reinicie o servidor de ssh.

[]’s

Compartilhe:
  • Twitter
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Rec6
  • Slashdot
  • FriendFeed
  • Digg
  • Print
  • PDF
  • email
  • Add to favorites
Categories: Linux Tags: , ,
  1. Ainda sem nenhum comentário.
  1. 30, Novembro, 2009 a 00:15 | #1
SEO Powered by Platinum SEO from Techblissonline