How to set up Linux Encrypted Networking Tool Secure Shell [SSH] in few easy steps on Ubuntu
How to set up Linux Encrypted Networking Tool Secure Shell [SSH] in few easy steps on Ubuntu. Firstly, what is Secure Shell (SSH)?
It is also known as Secure Socket Shell, a network protocol to provide admins with solid protection when accessing another host over the network.
SSH will encrypt the network exchange with better authentication tools and features like Secure File Transfer Protocol [SFTP], Secure Copy [SCP], port and X session forwarding for better security of other insecure protocols.
In the case below we’ll walk you through few easy steps to set up Linux Encrypted Networking Tool SSH on Ubuntu
- sudo apt-get install openssh-server – to begin installation
- cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults – please make a copy of the default SSH config and rename it to factory default
- chmod a-w /etc/ssh/sshd_config.factory-defaults – modify the permissions
- gedit /etc/ssh/sshd_config – tweak config file if required ( install gedit if required)
- restart ssh – or on latest Ubuntu version use next – systemctl restart ssh
- mkdir ~/.ssh – here we are creating a folder where your generated key will be sored
- chmod 700 ~/.ssh – change the permissions
- ssh-keygen -t rsa – generate your key
At any point of time if asked always select “Y”
Once all steps above are completed, you are ready to connect. At this point, you just have to open the terminal, find the IP address of the host you want to SSH.
You can run ifconfig to find out the IP address and to login to the SSH Server type in the terminal: ssh firstname.lastname@example.org