![]() It turns out that SELinunx is shipped with Centos by default (unlike Debian.) If you change the SSH port as I did earlier in the sysconfig file then you need to update SELinux to the new port number, don’t be disconcerted if the below command takes a while to run: semanage port -a -t ssh_port_t -p tcp 222 Make sure you check that it is indeed running and verify from another box before you logout your current session otherwise you’re well and truly in a pickle. Here you can add other parameters, such as disabling root logins for a full list read: man dropbearĪdd dropbear to startup and start the sever: chkconfig dropbear on Now you can pass parameters to dropbear for when it’s starting up: OPTIONS=" -p 222" First create a new file in /etc/sysconfig for dropbear: vim /etc/sysconfig/dropbear ![]() I was initially baffled as how to configure Dropbear on Centos, having previously only set it up on Debian. The experience was definitely an interesting one, but here’s what happened: So I recently purchased a new server, with the aim to run Virtualizor and OpenVZ on it which happened to mean installing Centos instead of my usual Debian. There was an error loading some of the images for this post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |