Solved

Connect to home ubuntu computer using ssh

Posted on 2010-09-22
10
1,068 Views
Last Modified: 2012-05-10
I am installing ubuntu desktop edition at home. I want to be able to acces my home machine remotely using ssh. How do I do that ? All I know is that I can install the openssh-server package on my home computer. But, when I go out, how do I access my home computer through ssh ?
0
Comment
Question by:imperialguy
10 Comments
 
LVL 8

Expert Comment

by:jimmyray7
ID: 33739859
You'll need to know your public IP address.  If it's static, no problem.  If not, you can use a Dynamic DNS provider (DynDNS or a variety of others).  If you have a separate firewall/router, you'll need to forward port 22 to your Ubuntu PC.  That should be it.  Let me know if you need more details.
0
 
LVL 2

Expert Comment

by:reason2009
ID: 33740168
A way to find your public IP is to visit http://ipchicken.com. The site will tell you what it is.
0
 

Author Comment

by:imperialguy
ID: 33740523
This is what I did:

1.) installed openssh-server using the following command:

apt-get install openssh-server

2.) Forwarded port 22 on my router

3.) tried to connect to locahost using

ssh <username>@locahost

Success

3.) Now, I went to ipchicken and recorded my ipaddress.

4.) Tried to login through another machine using putty

Putty says Network connection timed out.

What should I do now ?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:imperialguy
ID: 33740532
Btw, my ipaddress is static
0
 
LVL 6

Expert Comment

by:Ryan Smith
ID: 33740545
on ubuntu type sudo apt-get install openssh-server

If you want something totally cool, grab No Machine.  This will let you have a graphical ssh session on your ubuntu box.

http://www.nomachine.com/download-package.php?Prod_Id=2069
0
 

Author Comment

by:imperialguy
ID: 33740619
Also, another thing: The ubuntu runs through vmware in my home pc. So, it is a virtual machine. Ubuntu runs inside WinXP. When I clicked the wireless icon in the Ubuntu, it said my ipaddress is 10.0.2.15. When i do ipconfig in windows, the ip address is 192.168.1.2. I don't know if this has anything to do with my problem. The attached screen shot should explain what exactly I am trying to do.
ubuntu-inside-winxp.PNG
0
 
LVL 6

Accepted Solution

by:
Ryan Smith earned 500 total points
ID: 33740647
in vmware you can edit the vm, click network adaptor and choose bridged, DO NOT CLICK replicate network connection state to get on the same network.  


root@ubuntu:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:57:66:5b  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
0
 

Author Closing Comment

by:imperialguy
ID: 33740709
That solution by 'norcalhelpdesk' worked wonders. Thank you very much.
0
 

Author Comment

by:imperialguy
ID: 33740772
I have one more question though. What if I am running a vm on a machine that is part of a university network. I just tried doing the bride adapter thing for a machine which is on a university lan. it is not working. any ideas ?
0
 
LVL 6

Expert Comment

by:Ryan Smith
ID: 33740965
what ip is the university and what are you getting on ubuntu?
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question