Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 08-30-2005, 05:54 PM   #1
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
IP/DHCP and SSH Problem

Ok. I'm dual booting Win XP and FC4.
I also have a wireless router that I use to connect to the internet with.

Now, my desktop does not have a wireless NIC (yet) and is using a bridge from another computer on my network. Normal internet connections work fine in linux, and I got everything working fine in windows, ever my remote stuff....but in Linux I'm having troubles. First, it gets the wrong IP address from the DHCP server (I have static DHCP setup so I can do remoting)

These are the entries in my config for the DHCP (on the router)
1) jpower	00-02-55-FF-C0-9D	
2) cornempire	00-40-F4-34-02-F1
3) dell_900_laptop	02-0F-3D-68-75-01 *
4) jonesinator	00-4F-49-0C-AF-C2
5) dell_900_laptop	00-0F-3D-68-75-01 ^
* This the the imaginary software network bridge on my XP laptop.
^ This is the real card.

Now here is the data that appears whin I do ifconfig:
[cornmaster@cornempire ~]$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:40:F4:34:02:F1
          inet addr:  Bcast:  Mask:
It clearly shows the MAC for the proper entry, but it doesn't get the proper IP. You can see that it gets the IP for the laptop wireless card. When I look at the router, it shows the laptop mac (entry 5) for my linux desktop.

In Windows this isn't an issue, it gets the proper IP for the proper MAC. I suppose I could hardcode the IP in linux, but that wouldn't be my first option. So...get all of that... Anyone have any ideas? ssh problem.

I'm sure I sshed inside the LAN before, but now it's not working. The only thing I changed was the port number. Can anyone see anything wrong with this config? It's default...except for the port.

#       $OpenBSD: sshd_config,v 1.70 2004/12/23 23:11:00 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

Port 30252
#was Port 22
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no
#UsePAM no
UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/
#MaxStartups 10
#ShowPatchLevel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/libexec/openssh/sftp-server
Old 08-30-2005, 06:09 PM   #2
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
I restarted the SSH server, and edited the security policy from the gnome menu and made sure SSH was trusted (it was) and for good measure I added 30252 to the trusted list. (I did some further testing, it was trusting port 30252 that was necessary)

Now it works across the LAN.....but the IP being off is still a problem. I guess I can map some ports to windows and some to Linux for the different IPs, but I didn't really want to do that.

Can anyone suggest a good PCI wireless card that works well in Linux?

Edit2: I forgot that I had firestarter installed and SSH configured for port 22....doh! That part is fixed.

Last edited by CornMaster; 08-30-2005 at 06:18 PM.


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 10:34 AM
dhcp problem mjl3434 Linux - Networking 2 12-18-2004 01:25 PM
DHCP configuration and incoming telnet, ssh rsumbeling Linux - Networking 2 11-13-2004 11:52 AM
How do I ssh to a dhcp server? phishman3579 Slackware 4 07-02-2003 08:55 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:22 AM.

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