Notes: ssh- servers and clients.


This post is tagged with notes, such posts will be documentations of stuff that I learned or think that can be saved as notes. Also, they can be shared and is open for comments/opinions.
Concept inspiration: one of my seniors sayan.

I remember the uncertainty of concepts I had when I initially started working with the interactions between local machines and remote machines.
I figured out am not alone, so I thought documenting the same would be a good idea, err… maybe.

A step-to-step guide of the commands can be easily found. So, if you are here, you ain’t sure about the concepts or how ssh works.
One such guide that I liked.  Come back here after you have read the guide. 😉

It becomes tedious when someone is experimenting with remote machines, VMs, etc, and has to login to his machines with a password every time.

SSH login?

After having created the public and private ssh-keys using ssh-keygen, using ssh-copy-id one can copy the public key to remote-host.


It copies the public key to the remote-host(server).

remote-host? remote-machine? server? client?

client-machine: client machine can be your local machine and has openssh-clients package already installed (well, most of the times).

server-machine:  server machines can be the Virtual machines that you created on your local machine or the remote hosts. Server machines need to have openssh-server( sshd) package installed and enabled(active/running state).
Some distros do not have it by default.

check the status of the sshd service:
$ systemctl status sshd

enable the service:
$ systemctl enable sshd

start the service:
$ systemctl start sshd

Cooked this up: A pictorial explanation.

There is another situation when the same machine acts as both a client and the server, as obvious it may sound, ssh service needs to be running on the client as well.

that’s all fellas! Thanks for reading.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s