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.
12 Answers
You can either
- build a virtual machine on that Ubuntu PC or
- 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
3Define 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