M BUZZ CRAZE NEWS
// news

How to practice SSH with single Ubuntu system?

By Mia Morrison

I am having only one Ubuntu installed PC and I must practice SSH. could somebody help me how can I do that ?

Thank you.

1

2 Answers

You can either

  1. build a virtual machine on that Ubuntu PC or
  2. build a server in the cloud

to which you can SSH to. There are a few cloud services that offer 30 to 90-day trial like Amazon Web Services, Cloud Linux and HP Cloud

3

Define the ssh keys (used for the communication between the masters and slaves):

`ssh-keygen -t rsa` (Use empty responses for each prompt)
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in: `/home/user-name/.ssh/id_rsa`
Your public key has been saved in `/home/user-name/.ssh/id_rsa.pub`
`cd /home/user-name/.ssh`
`cp id_rsa.pub authorized_keys`

Note: You need to copy the authorized_keys file into the corresponding .ssh folder of each node.

And then you are done. ssh localhost

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy