|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Network/Internet Questions regarding network or Internet configuration and use in SUSE Linux |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am trying to get my parents to use Linux. They don't know how to install programs yet or do complicated things such as managing security or setting up things. So I want to be able to log into their computer from my Linux computer at my own house. I've never used SSH much before. I've been reading the man page though, and websites. From what I gather, I just type:
"ssh username@TargetHostname" , where username is the user name of my parents' computer, and TargetHostname is their hostname. Then I think I just enter their username password and I'm in, then I can su to root on their machine. Is it really that easy? What if someone else has the same hostname, by some chance or accident? I have to make sure I have a hostname that no one else will have? Also, what if I want to use scp (secure copy) to send them a file containing their favorite tv show or something? Wikipedia says: Quote:
|
|
|||
|
You cannot choose the domainname. You only have an IP address. So you would do
ssh user@12.34.56.78 for example. If you want a domainname that is easier to remember and also more importantly, will track any changes in your parent's dynamic IP, then you need a dynamic DNS service. There are some free ones out there. More complications: If you parents have a gateway router, then you need to portforward the ssh port to the computer in question. And you should take some precautions with the ssh service, like barring root logins, using strong passwords (or better still a public/private key pair), and choosing a different port for access (the portforwarding can do this mapping also.) |
|
|||
|
Quote:
|
|
|||
|
I maintain my mother's computer (which is running openSUSE linux in one of its boot partitions) a continent away using ssh, vnc, and nx. Here is a thread which explores this issue:
http://forums.suselinuxsupport.de/in...howtopic=63503 Having typed that, I thought Ken_Yap summarized a lot of the issues quite well. In particular, note what he had to state about a gateway router complication (with portforwarding/mapping possibly being required). Quote:
* port#41001 mapped to port#22 on PC#1 at home, and * port#41002 mapped to port#22 on PC#2 at home, and * port#41003 mapped to port#22 on PC#3 at home. To ssh in to home PC#3 from outside (say at a hotel), to my "oldcpu" user account, I simply type: <span style="font-family:Courier New">ssh -X oldcpu@myhomenetwork.net -p 41003</span> On my mother's home LAN, its much easier, since her PC is the only on the LAN. Hence her "gateway-router's" mapping is set to go direct to her PC. In order to use "myhomenetwork.net" I had to use the dyndns service that Ken_Yap referred to. Actually, my home LAN is not called "myhomenetwork.net". ... thats just an example. In fact, it has another name. |
|
|||
|
Quote:
Host home3 Hostname myhomenetwork.net Port 41003 User oldcpu ForwardX11 yes Then, irrespective of your login name, you can just do: ssh home3 and it has the same effect as what oldcpu wrote above. You can put all sorts of other options in there too. |
|
|||
|
Thanks for all your help. I wanted to put a host entry in .ssh/config, but there is no config file in the .ssh folder.
Quote:
Also, my parents only have a DSL box that's a little larger than my hand. It just has one phone cable going in and the ethernet cable coming out. Do I have to port forward through that, or does that not act as a router? |
|
|||
|
Quote:
You need to spend the time looking at it, read its brand name, model number, and figure out what it does. You need to determine is that just a "modem" or is it a combined "router/modem" ? Does your parent's PC connect to the internet (via that DSL box) using PPoE ? (ie point-to-point over ethernet, which would be the case if it is just a DSL modem), or do they use normal ethernet to a router? In both cases the cable will be an ethernet cable. .. So you can not deduce this by just looking at cables. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|