Home / Web service / Server / Change Ubuntu Server ssh port
우분투

Change Ubuntu Server ssh port

우분투 서버 ssh 포트 변경 방법 입니다.

 

vi /etc/ssh/sshd_config

# Port 22 // Yobubun change to their desired port, and # Pull the.

 

 

Now it opens a port, change'll save the existing port 22 ~

 

The newly added port 1234 Assuming how to open the port,

 

sudo ufw allow 1234/tcp

 

The Port Blocking

 

sudo ufw deny 22/tcp

 

This simply.

 

Since doeneundeyo haejusimyeon restart the ssh.

 

sudo
/etc/init.d/ssh restart

Simply enter.

 

Finally, try to enter netstat -ntl sure I am, that the desired port is open

– If you are using a router, it haejusyeoya open the port in the air port forwarding settings.

Check Also

phpmyadmin 404

nginx phpmyadmin 404 Not Found

Suddenly in phpmyadmin nginx server 404 Not Found 오류 가 발생 한다면 그 동안 서버에

Leave a Reply

Your email address will not be published. Required fields are marked *