Thanks for the suggestion, I already searched through a lot of posts but anyway looked again over the posts from your link and I finally managed to find a solution. In case anyone is also facing the same problem here is the post:
The command to restart the ssh service is:
kill -HUP `cat /var/run/sshd.pid`