when a change ssh port to something else i.e ip ssh port 1040, it just asked me to kill all ssh connection and try login again but then it still use port 22. please what is the way out
yeah... bit of a pain, it will not let you because you are on an SSH session already. Either go to console or enable "telnet server" and telnet in. then do "kill ssh all" and change your ssh port. Don't forget to "no telnet server" when you are done and write memory of course.
when a change ssh port to something else i.e ip ssh port 1040, it just asked me to kill all ssh connection and try login again but then it still use port 22.
please what is the way out
yeah... bit of a pain, it will not let you because you are on an SSH session already. Either go to console or enable "telnet server" and telnet in. then do "kill ssh all" and change your ssh port. Don't forget to "no telnet server" when you are done and write memory of course.
Could u gimme steps to
1. password less ssh using key
2. restrict ssh only from certain subnet or ip address
3. create a cron job
is there any way to kill ssh connection?
Yup, "show who" will show you the sessions and then "kill ssh 1" or whatever session number.
thanks!