How to SSH on Linux
Will explain what SSH is and further elaborate on some ways you can use SSH on Linux. Learn how to SSH via the Terminal, using PUTTY, and learn how to make it easier with XPipe.
Last updated
Will explain what SSH is and further elaborate on some ways you can use SSH on Linux. Learn how to SSH via the Terminal, using PUTTY, and learn how to make it easier with XPipe.
Last updated
SSH is a Secure Shell Protocol that enables secure communication between two devices. This tool allows you to access other devices from either within your network or over the internet. We will delve into several ways you can utilize this tool and learn some ways to make the process easier.
Check that SSH is installed:
Output should be similar to this:
If you instead see this:
Then follow the instructions below to install.
Update the system and install
Debian/Ubuntu/Mint
Fedora
Arch/Manjaro/Endeavor
openSUSE
Connecting to a device:
ssh - application being used
user - the user you are signing in with
192.168.1.36 - the ip of the device you are connecting to.
Will be asked if you would like to continue connecting. Type "yes"
Enter the required password and you will now have access to the remote device.
This application takes everything you can do with ssh and place it into a GUI. This way you can navigate through the options instead of needing to know the commands.
Debian/Ubuntu/Mint
Fedora
Arch/Manjaro/Endeavor
openSUSE
Provides a variety of features for more then just ssh. For this case we will use it to save our login credentials and make it easier to access our devices.
A bash script that will detect your system and automate the installation.
An alternative to authenticating with a password is by using SSH key pairs. This adds an additional layer of security and prevents anyone that doesn't have an authorized key from even attempting to log in.
Check if you have any keys saved:
Generate Keys
NOTE: rsa is the type of algorithm being used and is available in every version of SSH. It is recommended to use a different algorithm due to the potential risks of that may come about in the future. Refer HERE for more info and alternatives.
id_rsa - By default the key will save as "id_rsa" though if you already have one saved as such then change the name.
Passphrase - For this example leave empty but you can add a password if you wish to authenticate with such.
List keys
output:
id_rsa - PRIVATE KEY
id_rsa.pub - PUBLIC KEY
It will ask for the "user" password and once entered your keys will be imported.
ssh into remote device:
Now if you did not set a passphrase with your keys you should log in without needing a password.