LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2004, 03:36 PM   #1
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Rep: Reputation: 15
Putty over KVM


I am trying to use putty on a win xp home box to control my red hat 9 box.
I have a linksys router connecting the 2 together.

Here is my issue:
I have dial up Internet on the win box so I always get a different ip. Is there a way to set up putty so that I can use it without being on the internet.

The first thing putty wants is an ip of the remote box. Couldn't I use an internal ip?
Someone suggested setting up a user account on the rh box with the same name and pass as the win login but I got knocked of IRC before I could get the rest.

Any suggestions for a starving newbie.
 
Old 05-28-2004, 04:05 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,087

Rep: Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380
Yes you can use PuTTy without being on the internet and you need to use the local i.e. internal IP address of the RH box.

Make sure sshd is running and the firewall if running allows port 22 tcp traffic.
 
Old 05-28-2004, 06:19 PM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I've only ever used PuTTY on a local network (never needed to do long-range management) and it's never failled to work like a charm
 
Old 05-29-2004, 11:55 AM   #4
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
"use the local i.e. internal IP address of the RH box."

Yes, this is my issue. How do I find this information?
 
Old 05-29-2004, 12:52 PM   #5
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
The modem is on the xp box, how does the rh box connect to the internet? Do you internet connection share with your xp box? Dhcp on on the rh box?

The linksys router is the key I think. You maybe use dhcp from it. Try setting a permanent IP on the rh box. Set it outside of the dhcp range of your router. The router probably assigns in the range 192.168.?.2-100 or something, where ? is 0,1,or2. Look in the manual. Then you would set the rh box as 192.168.?.101 with a netmask 255.255.255.0 broadcast 192.168.?.255 abd gateway as 192.168.?.1 (depends upon the router). Finally set the dns either to the router or to some permanent ip you know. Check out /etc/resolv.conf on the rh box before you change anything, you can use the IPs there after the change.
 
Old 05-29-2004, 02:32 PM   #6
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
both boxes have modems and I can dial up on both but I would like to share the connection thru the win xp box. Is that easy to set up?

Thanks for your help.

Where exactly on rh do you set your ip? do i edit a file or is there a gui or something?
 
Old 05-29-2004, 05:23 PM   #7
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
Okay, a litte tiny bit of progress.
I was doing ifconfig before on the rh box and if I wasn't on the internet i could pnly see the ppp modem. But then I did ifconfig eth0 up and then ifconfig showed me the nic.
I was then able to set eth0 to an ip. I chose ifconfig eth0 10.10.10.10
and when i did ifconfig it came up as that ip!!

It's the little victories at first.
Anyway, I don't know jack about networking. I didn't think you could just decide your own ip. I thought it was like a MAC that you were stuck with. Live and learn!

Anyway, the latest thing I am totally confused about is the linksys box. I got it new and it didn't come with any software. So how do I setup anything with it at all if it has no interface? The xp box shows me my workgroup that I created but there are no members yet.

Oh, and Putty wouldn't let me connect to the rh using the 10.10.10.10 ip address. I don't think this is suprising because I didn't set up ssh or dhcp or any other TLA's.

I think I have a lot of work to do still.

Oh one other thing. I have this red hat 7.2 book and they keep talking about a graphical interface called linuxconf. It says i can call it up by entering /sbin/linuxconf as root. This doesn't work for me in rh9. I don't even have a linuxconf file in the dir. Did they change this or something?

Thank you for all of your help so far. Bear with me. I'm actually pretty good in windows as far as software and programming go.
 
Old 05-29-2004, 07:01 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,087

Rep: Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380
No special software is required for configuring the router other then a web browser. Your manual should explain how to log on i.e. its IP address and password and describe how to change the settings.

You can configure either OS for DHCP which will automatically assign an IP address when you boot either computer. With ony two computers its just as easy to use a static IP address. Make sure its the same subnet as the router
192.168.X.X Check the router manual for details.

You also should read up on networking.
http://www.netfilter.org/documentati...OWTO.html#toc9
A little on the old side.
http://www.tldp.org/HOWTO/Net-HOWTO/

AFAIK linuxconf is no longer included because of security issues. Any configuration setttings can be changed using a GUI or command line interface.
I only run a command line version RH and not really familar with any GUI configuration utilities. Check the Redhat website for documentation.

You created a workgroup but did you configure sharing on the XP box yet? Also your RH box will not a part of the workgroup until you install (if not already accomplished) and configure samba.
 
Old 05-29-2004, 08:14 PM   #9
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
I think I goofed in my original post. What I have is a switch and not a router. Big difference right?

Sure wish I had that linuxconf. But I see the GUI you are referring to and I think it is getting me where I want to go.

I set up my rh box as 192.168.0.101
my win box is 192.168.0.102
I add those two to the loopback in the host GUI
I modified the hosts.allow and hosts.deny
Now I am going back to win box to set up the net again.

Here is a silly question. If on my rh box I set up this static ip to point at my win box what happens when I dial up and the ISP changes my ip to one they give out? Won't the rh box then be confused?
 
Old 05-30-2004, 09:21 AM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
OK - I think you seem to be missing a vital piece of information - a KVM switch has nothing to do with networking. A network switch or hub does. If you only have 2 computers then you don't even need a switch or hub - you can get away with a crossover cable and 2 ethernet cards.

Currently - how are your computers connected (what type of cable/cables)
 
Old 05-30-2004, 10:26 AM   #11
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
I get your point. But in a way a KVM switch does have something to do with networking, here is how:
I have 2 keyboards, 2 mice and 1 monitor. To switch from the win box to the rh box I have to reach around and unplug the monitor plug and switch it to the other box. After a 100 times this is adding some wear and tear to the connector. I tried a hardware data transfer box to just flip between monitors but it made the mointor fuzzy.
So I added a switch (instead of a crossover cable, just for the future network) and Putty and I am proud to say, with much help from folks here, I GOT PUTTY UP AND RUNNING!!!!

Now, no more switching the monitor cable. Also no more rh GUI but that is fine with me.
 
Old 05-30-2004, 11:55 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,087

Rep: Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380Reputation: 3380
Dial up will not effect the IP address for eth0. Log on and look at the output of /sbin/ifconfig. You will see a new interface with a different IP address.
 
Old 05-30-2004, 12:30 PM   #13
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
thank you michaelk,

It wasn't eth0 that I was concerned about it was the winbox ip. I thought that when I connected to my ISP that they changed my ip on the win box and that eth0 on the rh box would say huh? because it wouldn't be able to find the winxp box at 192.168.0.102
But none of this happened. I don't understand why but that is okay with me for now.

I am on a roll today. I got samba up and configed in rh I was able to edit the smb.conf file and i got the daemon up and running
when i do smbclient i can get at my linux group and it said Domain=[MYGROUP]
I tried some mount commands to add both boxes ( i don't know what im doing here but hey, i was on a roll)

Then when I flipped back to windoze there was MYGroup in the network list!!! Very exciting. My wife can't figure out why i'm happy as a pig in shit.

Anyway, MYgroup is in the list next to the empty network that i setup on the windows side before i had samba. The MyGroup that samba set up is broken though. when i try to select it windows stalls and then comes back with a message about network path not found, group is not accessible.

The other workgroup, that i set up from windows, is empty. I'm wondering which one I should try to get to work and how?

Also where is that MYGROUP setting on rh. Can I change that to something more meaningful.

As always, thanks to all of you.
 
Old 05-30-2004, 01:32 PM   #14
Alex Cavnar
Member
 
Registered: Jun 2003
Location: Nashville, TN
Distribution: FreeBSD, Slack, and DebianPPC
Posts: 60

Rep: Reputation: 15
Your ethernet adapter's IP address won't change when you dial up to the internet-- each Network adapter (dialup or LAN) has its own IP address, unaffected by the actions of the other.

On the Windows box, type cmd to open up a command window. Then, type ipconfig /all to find out the IP address for Local Area Connection. There's your IP address.

For remotely administering either box, I'd recommend VNC when on a LAN. That way, you can do everything you need in Windows and in Linux. SSH's capabilities on a Windows machine are kind of limited, because unlike Linux, you can't really configure everything through the command prompt.
 
Old 05-30-2004, 04:27 PM   #15
VBAHole22
Member
 
Registered: May 2004
Location: Virginia
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
Well I got Putty to connect to the rh box from the win box but the internet connection is not shared yet. What is needed to get that done?

I cannot ping the win box from the rh box for some reason. Not sure why that is.

Is VNC just another option like Putty. I noticed with Putty you can use ssh or telnet.

I need both the server and viewer on each box to use VNC back and forth right?

I'm getting there slowly. But I'm picking up a thing or two along the way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux and KVM philipogletree Linux - Hardware 2 08-25-2005 06:23 AM
KVM switch kingtas Linux - Newbie 7 02-17-2005 07:50 PM
KVM switch frankie_DJ Linux - Hardware 2 10-07-2004 02:05 AM
KVM and X issues BattousaiX Linux - Software 1 10-02-2004 08:25 AM
KVM + Nvidia hoborocks Linux - General 5 11-02-2002 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration