For installing SSH in ubuntu system.
ssh has two main components:
1. ssh:- ssh command used to connect remote machines - the client.
2. sshd:- sshd is a daemon that is running on the server and it allows clients to connect the server.
Generally, ssh is pre-enabled on Linux, but in order to start sshd daemon, first of all install ssh in our machine.
See the following command to install ssh in ubuntu:-
test@test:~$ sudo apt-get install ssh
test@test:~$ sudo apt-get install pdsh
This will install ssh on our machine. We can see it is setup properly:
test@test:~$ which ssh
test@test:~$ which sshd