Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers 2

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. –  AgentCool Dec 28 '13 at 10:33
    
I mean process of connecting to any cloud server. That can help me as a tutorial. –  AgentCool Dec 28 '13 at 10:37
    
Once your cloud server is ready, you can do the steps to secure it as outlined here rackspace.com/knowledge_center/article/… –  J. Austin Rodriguez Dec 29 '13 at 23:18
add comment

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

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
add comment

Your Answer

 
discard

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.