we can remote another computer on same network using ssh, but if there is someone else who knows the password on the computer so he can also do remote acces to the computer. so we have to change some settings by replacing the existing ports so other people will not easy to access the destination computer
- open file sshd_config
sudo nano /etc/ssh/sshd_config - find text
Port 22
change with
Port 2222 / another port number - find text
PermitRootLogin yes
Chenge with:
PermitRootLogin no
this setting will not permit root as default login
5. save by
ctrl+x press y then enter
6. restart ssh lo
sudo /etc/init.d/ssh restart
0 komentar:
Posting Komentar