Contents tagged with CentOS

  • How to manage docker from C# with SSH

    Hello everybody,

    today I want to write a few words about how to work with Docker with help of C#.

    Recently I've got a challenge to find the way how to manage Docker. Initially I've tried Docker.Dotnet library. It has quite interesting options for management of docker, but from my own prospective it's not very convenient for management.  After some trial/error efforts I've decided to try another option. I tried using SSH connection in order to manage linux instance with Docker. In order to have access to CentOs I've used SSH.Net.

    In order to have option for mocking of SSH I've created following interface:

    public interface ISshManager

    {

    string IpHost { get; set; } … more

  • How to open specific port in Cent OS permanently

    Hello everybody,

    today I want to document how to permanently open port in CentOS linux permanently. You can achieve it with following command:

    firewall-cmd --zone=public --add-port=22/tcp --permanent

    or with usage of iptables:

    iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT

    Key --permanent ensures that port will remain working after the reboot. more