basic network helpForum: Networking Topic: basic network help started by: hiro protaganist Posted by hiro protaganist on Oct. 15 2005,09:47
I am fairly new to linux and very new to dsl. I have two old computers running the current version and they are both plugged into my router and are both able to access the internet without me needing to configure anything. I was impressed by this!What i now need to Know is this, is it possible to access/control an xterminal window on one box from the other? I have not set up any networking on them so far as i don't know how. All the other computers on the network are windows machimes and they use dynamic ip addressing although i do not actually need the dsl boxes to talk to those. As you can probably guess i am trying to run several dsl boxes to do a simple fixed job without the need for multiple mice/kbs/monitors or a kvm. Any help for this project would be great. Many thanks, Hiro. Posted by hiro protaganist on Oct. 15 2005,12:49
I think i have solved the first bit of the problem, using the ifconfig command i have managed to set up the eth0 to a static ip address for each machine and can now ping from one to the other successfully.However i still need to know if it is possible to control one from the other, ie. a remote desktop or even a remote terminal. Many thanks, Hiro. Posted by hiro protaganist on Oct. 15 2005,13:46
I have discovered the telnet command and wondered if i could use that? I have tried typing telnet followed by the ip address of the other computer but get the following message:telnet: Unable to connect to remote host:Connection refused. Does anybnody have any idea why this is? Do i have to use the computer name instead of the ip address and if so how do i give the computer a name? Many thanks, Hiro. Posted by SaidinUnleashed on Oct. 15 2005,17:53
There is a ssh server and client included with DSL.Use that. Posted by hiro protaganist on Oct. 15 2005,20:46
I seem to be getting the same failure connection with ssh as i get with telnet. I typed ssh followed by my ip address and with the verbose switch got the following.ssh_confgi line 17: Deprecated option "fallBackToRsh" ssh_config line 18: Deprecated option "UseRsh" Rhosts Authentication disabled, originating port will not be trusted connecting to 192.168.0.2 port 22 connecting to address 192.168.0.2 port 22: Connection refused ssh: Connect to host 192.168.0.2 port 22: Connection refused Do i need to set up anything on the other machine to tell it to allow access and if so how do i do this? My linux "bible", Que's Using Linux is a bit vague on this point to say the least. Many thanks for the help so far, Hiro. Posted by skaos on Oct. 16 2005,15:20
I don't have a DSL box around right now, so the following may not apply. You have to have an ssh daemon running on the box you want to access - you can check it with "ps -ef|grep sshd" (run it without quotes). If it's not running I think you have to start it with "sshd &" as root. To use X programs on the remote box locally, you can start ssh like this: ssh -X username@ip.adress.remote.box
Posted by hiro protaganist on Oct. 18 2005,10:03
Thanks Skaos, i tried as you said but got the following error:could not load host key: /etc/ssh/ssh_host_key /etc//ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key no host keys available--exiting I checked the directory and those files are not there, does anyone know why not or what i need to do to get them there or work around them. Thanks, Hiro. Posted by hiro protaganist on Oct. 19 2005,07:20
I have managed to find some info on the web which indicates that i need to modify the /etc/hosts.deny file. This file does exist however, even though i cxan open it and read it i get told i don't have permission to alter it even when logged on as root. Does anyone know if i need to modify this file and if so how do i do it?Many thanks, Hiro. Posted by hiro protaganist on Oct. 21 2005,14:34
At last i finally have it. Just in case anyone is interested, if i tried to start sshd from the cli (sshd &) i got the error i posted two posts ago about not finding the keys.However if i started sshd from the dsl control panel these files suddenly appeared! I suppose they are automatically created when sshd is started this way? Unfortunately the system now seems unable to connect to the net using my router something that it did before! Life may be easy but linux doesn't seem to be! Thanks for you help, Hiro. Posted by AwPhuch on Oct. 21 2005,16:06
You might have to add a default gateway and even the DNS nameserver if you are using a static IP on your DSL installSSH is a Secure version if telnet...well kinda I believe you can autostart the ssh server by adding /etc/init.d/ssh start it might be sshd too (just look in the dir for the correct filename) to your /opt/bootlocal.sh file (I just dont know how to tell it to not keep re-generating the dang ssh keys (which takes like 30-45 seconds on a 133Mhz machine!) VNC will allow you to actually run a desktop from one to the other Its good to see someone who is actually self teaching themselves and then reporting what they find..most people just get stumped and then start posting! GREAT JOB!!! and Welcome to the Revolution!!! Brian AwPhuch |