Linux
ubuntu 서버 -- ssh 접속포트 바꾸기
자유프로그램
2015. 9. 11. 23:39
반응형
ubuntu 서버 -- ssh 접속포트 바꾸기
환경 : ubuntu 14.04 LTS server 64bit. 맥 터미널에서 ssh 로 접속함.
참고 : https://help.ubuntu.com/lts/serverguide/openssh-server.html
default = 20번 ==> 2222 로 바꿔보자.
** sshd : ssh daemon program ( 즉, ssh server 프로그램)
/etc/ssh/sshd_config
--> OpenSSH SSH daemon configuration file
--> 여기에 모든 설정이 들어있다.
; 자세한것을 알고 싶으면
$ man sshd_config
명령으로 알수있다.
** sshd_config 파일에서 포드 바꾼 예
(되도록이면 수정전 원본파일은 복사해서 저장해 놓자!!!)
<< sshd 서버 프로그램 재시작하기 >>
$ sudo service ssh restart
--- 이제부터 ssh 접속은 2222 port 로만 가능하다.
반응형