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:-
[email protected]:~$ sudo apt-get install ssh
[email protected]:~$ sudo apt-get install pdsh
This will install ssh on our machine. We can see it is setup properly:
[email protected]:~$ which ssh
/usr/bin/ssh
[email protected]:~$ which sshd
/usr/sbin/sshd