If you are running an SSH version of IOS and want to disable SSH on the router itself, you will need to remove "transport input ssh" from your line config.
conf t
line vty 0 4
transport input telnet
If you have a machine behind the router and want to disallow port 22 access to this machine, you will need to create an extended IP access-list and apply it.
conf t
access-list 199 deny tcp any any eq 22
access-list 199 permit ip any any
int f0/0 (connection to internet)
ip access-group 199 in