sudo apt install openssh-server
sudo service ssh start
sudo service ssh enable
sudo service ssh status
Note
In my case I changed the default port number 22 to 3000
sudo gedit /etc/ssh/sshd_config
sudo service ssh restart
sudo service ssh status
ip addr
ifconfig
ssh rifat@192.168.56.5 -p 3000
syntax
Important
scp -P port_number ServerName@ServerAddress:copy_path destination_path
scp -P 3000 rifat@192.168.56.5:/home/rifat/ca/generated/ca.crt /home/cse487/Downloads
scp -r -P 3000 rifat@192.168.56.5:/home/rifat/share /home/cse487/Downloads