Study/Ubuntu
Ubuntu - Openssh 설치 및 포트변경
theqoo
2011. 12. 28. 13:38
1. 설지 여부 확인
root@ubuntu:~$ dpkg -|lgrep ssh
2. 설치
root@ubuntu:~# apt-get install openssh-server
3. 포트변경
root@ubuntu:~# vi /etc/ssh/sshd_config
위 파을을 열어 밑에 포트번호를 바꾸어 주면된다.
# What ports, IPs and protocols we listen for
Port 22
4. ssh 재시작
root@ubuntu:~# /etc/init.d/ssh restart