Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Thank you.

share|improve this question
"Practice SSH" is a vague request. Do you mean practicing how to administrate an SSH server? You only need one Ubuntu PC for that - you can connect to it from any other computer with an SSH client (such as PuTTY for Windows). Do you mean practicing forwarding ports? Then you will want to use a remote server or run your own in a virtual machine. – Aaron D Dec 28 '13 at 14:03
up vote 2 down vote accepted

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

share|improve this answer
can you explain the process too, thank you for answering. – Raja Dec 28 '13 at 10:33
I mean process of connecting to any cloud server. That can help me as a tutorial. – Raja Dec 28 '13 at 10:37
Once your cloud server is ready, you can do the steps to secure it as outlined here… – J. Austin Rodriguez Dec 29 '13 at 23:18

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/`

`cd /home/user-name/.ssh`  
`cp 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

share|improve this answer
Since OP didnt mention what he means by practise, I thought he is having trouble initiating a session on localhost. ^(to all those people, who gonna think, this is not a valid answer) – ASCIIbetical Dec 28 '13 at 9:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.