March 2017
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

March 2017
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

DOCKER Testing

Obtaining the Docker image

First, get the basic Docker image. The Docker image is published on the Docker Hub Registry (https://hub.docker.com/). You can search for published images with the docker search command. An example of searching the image of CentOS is here.

# docker search centos

INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/centos The […]

Docker Centos 7

nginx?HTTPS

vim /etc/default/docker

OPTIONS=”–insecure-registry 192.168.1.9:5000″

docker-images 10.0.0.5 docker 10.0.0.6 docker

[root@docker-images ~]# cat /etc/RedHat-release CentOS Linux release 7.2.1511 (Core) [root@docker-images ~]# uname -r 3.10.0-327.el7.x86_64 [root@docker-images ~]# uname -m x86_64 [root@docker-images ~]# uname -a Linux docker-images 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [root@docker-images ~]#

1?selinux

[root@docker-images ~]# systemctl stop […]

sshd debug

1. To run sshd in debug mode as a one time instance without affecting other users: # /usr/sbin/sshd -ddd -D -p (port) 2>&1 | awk ‘{ print strftime(“%T: “), $0; fflush(); }’ | tee sshd.log 2. On the client end run add -p (port) to the ssh command line # ssh -p (port)

OR

[…]

Disable Password Authentication for SSH

How to Disable Password Authentication for SSH

Once you have SSH Keys configured, you can add some extra security to your server by disabling password authentication for SSH. (Note that if you do lose your private key, this will make the server inaccessible and you will need to contact HostGator to have this re-enabled.)

To […]

active directory ssh authentication

Here is my configs and setups: /etc/nsswitch.conf

passwd: compat winbind shadow: compat winbind group: compat winbind #hosts: db files nisplus nis dns hosts: files dns bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files netgroup: files publickey: nisplus automount: files aliases: files nisplus

/etc/pam.d/system-auth (generated via the “setup” […]