Restart sshd under OpenBSD


Warning: in_array() expects parameter 2 to be array, string given in /usr/local/4admin/apache/vhosts/tarlink.com/httpdocs/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 244

Warning: in_array() expects parameter 2 to be array, string given in /usr/local/4admin/apache/vhosts/tarlink.com/httpdocs/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 246

Working with OpenBSD I just realized that there is no command to restart sshd so I came with aliasing solution.
You can do it with command:

# kill -HUP 'cat / var / run / sshd.pid' & / usr / sbin / sshd

Or you can edit you bash sript, in my case I use .bashrc

# nano ~/.bashrc

And add alias to your command

alias sshdrestart='kill -HUP `cat / var / run / sshd.pid` & / usr / sbin / sshd'

From now you can enjoy nice command sshdrestart

# sshdrestart
[1] 28123