Just getting to know how to do stuff in bash
Anything after a # symbol : output
#! /bin/bashecho "HELLO_WORLD" # this is also a comment
Capital Case Variables and System Defined Info: output
# there are some system defined variables and are usually defined in CAPITAL CASES
# there are other that are defined by us(the user).## system defined info
echo shell name : $BASH # write the bash path of running bash
echo shell version : $BASH_VERSION # write the bash version
echo home directory …
There are few features that Filesystem have that database can’t provide :
create a docker image which runs ssh server :
ssh-server can be run using Openssh-server package
RUN apt-get update
RUN apt-get install -y openssh-server openssh-client
ADD ./sshd_config /etc/ssh/sshd_config
ADD ./Dockerfile ./Dockerfile
RUN mkdir /var/run/sshd
RUN echo root:password | chpasswd
You need the IP of the container, as we are using bridge network for running the container here, you can find IP using :
docker container ls | grep…
What is SSH?
`S`ecure `SH`ell : SSH
At core its a Communication Protocol, that helps you do just anything on a remote system.
Benefits : Traffic is Encrypted.
Used mostly in terminal/commandline.
SSH is the client program
SSHD is a server (ssh daemon)
The server must have `sshd` installed and running, for you will not be able to connect using ssh otherwise.
Host Based is not scalable!!!
Most common and used method is having a public/private key pair
~/.ssh/id_rsa (private key)