[red@localhost ~]$ cd /etc/ssh/
[red@localhost ssh]$ sudo cp sshd_config sshd_config.port22
[red@localhost ssh]$ sudo diff sshd_config sshd_config.port22
13c13
< Port 88
---
> #Port 22
[red@localhost ssh]$ sudo /etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
[red@localhost ssh]$
[red@localhost ssh]$
OOPS! I forgot to update my port forwading on my router at home :-O
Interesting ... maybe the doofus that is attempting to ssh in to my system as root has read this posting. They are now varying the port to ssh into ...
ReplyDeleteSep 30 15:22:35 localhost sshd[11137]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=211.138.123.42 user=root
Sep 30 15:22:36 localhost sshd[11137]: Failed password for root from 211.138.123.42 port 2221 ssh2
Sep 30 15:22:36 localhost sshd[11138]: Received disconnect from 211.138.123.42: 11: Bye Bye