LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   newbie question about remote acess (https://www.linuxquestions.org/questions/linux-networking-3/newbie-question-about-remote-acess-439665/)

deepinlife 04-28-2006 07:01 AM

newbie question about remote acess
 
guys i want to acess my pc from windows client..i use mandriva 2005.
i connect to internet through dsl line ...
i need to know my ip addrese?
should i know it every time i log to the net , to use it in remote acess?

i don't know exactly how i will acess , using ssh or telnet watever?i just want to know teh procedor for someone like me to log to linux machine (dynamic ip)from windows xp?

slackmagic 04-28-2006 07:11 AM

Quote:

Originally Posted by deepinlife
guys i want to acess my pc from windows client..i use mandriva 2005.
i connect to internet through dsl line ...
i need to know my ip addrese?
should i know it every time i log to the net , to use it in remote acess?

i don't know exactly how i will acess , using ssh or telnet watever?i just want to know teh procedor for someone like me to log to linux machine (dynamic ip)from windows xp?

hi there deepinlife,


first off, welcome to LQ.org :P

Ok so you're on Mandriva 2005 and you want to connect to that system through another system that has Windows on it.

Yes you will need to know your IP address in order for you to connect to your mandriva system through windows (putty/winscp)

I think you will have to remember it or write it down somewhere. I don't think Windows has something like /etc/hosts like Linux does, so yep, remember or write it down

For security reasons you should use ssh for your connections and you can still look at vnc, x11vnc and a few other things to get the graphical part up if you like to actually see X window...otherwise SSH will do just fine


So basically you will need to learn how to start/run services. You will need to run the sshd (which is the daemon for SSH that allows you to have someone connect to your system via SSH). All other things are just extra as long as you want/need them.

michaelk 04-28-2006 07:27 AM

What is your hardware configuration? modem or modem/router?
If directly connected you can look at the output of the command
ifconfig ppp0

If using a router you can get your IP address from the router itself or a site like whatsmyip.com. However using a free dynamic DNS site like www.noip.com will you to have a URL that will always resolve to your IP address. A client runs on the server that will update the dynamic DNS service so you do not actually need to know when your dynamic IP address channges.

telnet is not recommended because it isn't secure.

deepinlife 04-28-2006 09:58 AM

thx so much for the warm reciving..
it is so nice to post in this forum..

yes i have mandriva and i want to connect to it from windows xp..

i don't have modem. i have a network card , connecting to switch .the switch connects to net through adsl cable..

i have gone to the site whatismyip.com and saw my ip..
then i wrote in the shel
telnet <my ip> -l user
then it asked for password , but when i gave it the password it said it was refused?

i made the user "net" with password "123456" but he refused that..
is he reading the users from certain file?

i also downloaded putty..
but to use it should i make my own pc act as server or just make daemon listen to incoming messages?

jst1 04-28-2006 10:01 AM

dyndns is another dynamic dns service that is pretty easy to configure.

I suggest running ssh and freenx (the open-source project behind (NoMachine). You run the NX server on your linux host then get the full desktop environment remotely over the Internet via a NX client installed on your windows PC.

deepinlife 04-29-2006 10:11 AM

i know now that i have to make my pc server to listen to incoming calls..
i have made that and edited teh file which make the telnetd ok...
i have : telnet localhost
and it worked fine..
i sucssfully telneted some sites..
but still now i can't telnet myself?!

i get my ip and i telnet it but it always fail?
telnet <my ip> fail?

what is my ip?is it really the ip of my pc or it is the ip of the switch, i connect to net through?

billymayday 04-29-2006 10:40 AM

retiredsoldier, XP does have a hosts file somewhere in the windows directory tree and it acts exactly the same as the linux version. Here's what it looks like:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

slackmagic 04-29-2006 04:02 PM

ah ok billymayday,


thanks for the info as I did not know that ( I suppose I could have googled for it or at least try to find some information on that issue but why would i spend time learning windows stuff if I don't even use it :P)

billymayday 04-29-2006 05:14 PM

Found it pretty much by chance when I was playing with a home network. Thought I'd do a search of windows disk to see if hosts existed.

So burried away, that I still found it simpler to set up Bind on the server rather than search for some tucked away file everytime I changed something on the network.

Sorry if a bit off post


All times are GMT -5. The time now is 03:36 PM.