How to Practice Ssh with Single Ubuntu System?

How to Practice Ssh with Single Ubuntu System?

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

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

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.