Disabled Wireless causes ssh to be broken on wired connectio

Issues related to configuring your network
Post Reply
WF_Jester
Posts: 4
Joined: 2014/07/25 20:41:54

Disabled Wireless causes ssh to be broken on wired connectio

Post by WF_Jester » 2014/07/30 00:16:44

OK I have installed Centos 7 on new dell computer that has a wireless and wired network. Most everything seemed to be working except the web server could not get the test page when I tired connecting via ip from a computer on the same ip range. http://192.168.0.68 gets me nothing. So I figure maybe http is listening on the wrong interface. Do not plan on using the wireless connection anyway so i disable it in the ifcfg-<ssid_name> file. After that I can no longer ssh into the machine I get an ssh authentication error. When I enable the wireless again I can. The ifcfg-p3p1 for the wired adapter has the 192.168.0.68 static ip set up in it and the wireless is getting a different ip from the DHCP server. I really want to keep the wireless adapter disabled since it will never be used but have no idea what is screwed up in my configuration to make this happen. Any ideas or suggestions?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Disabled Wireless causes ssh to be broken on wired conne

Post by gerald_clark » 2014/07/30 00:36:35

If your wireless is also in the 192.168.0 network you will have routing problems with both interfaces active.
Shutting down one interface may then leave you with broken routes.
Show all your ifcfg files plus /etc/network.

WF_Jester
Posts: 4
Joined: 2014/07/25 20:41:54

Re: Disabled Wireless causes ssh to be broken on wired conne

Post by WF_Jester » 2014/07/30 01:43:26

Here you go

/etc/sysconfig/network-scripts/ifcfg-p3p1

Code: Select all

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=p3p1
UUID=8964c1f7-db9d-4159-a99a-2d183d28369a
ONBOOT=yes
HWADDR=F8:BC:12:86:60:00
IPADDR0=192.168.0.68
PREFIX0=32
GATEWAY0=192.168.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
/etc/sysconfig/network-scripts/ifcfg-bolt_one

Code: Select all

ESSID="bolt_one"
MODE=Managed
KEY_MGMT=WPA-PSK
TYPE=Wireless
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=bolt_one
UUID=0f7be780-80e7-48b8-861f-54e7bb9e3a58
ONBOOT=yes
HWADDR=90:48:9A:5B:AB:5F
SECURITYMODE=open
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
/etc/networks (no /etc/network)

Code: Select all

default 0.0.0.0
loopback 127.0.0.0
link-local 169.254.0.0

WF_Jester
Posts: 4
Joined: 2014/07/25 20:41:54

Re: Disabled Wireless causes ssh to be broken on wired conne

Post by WF_Jester » 2014/07/30 15:31:27

When is use the following command this is the output I get and it just hangs at the last line

ssh -v 192.168.0.68
OpenSSH_5.9p1, OpenSSL 1.0.0j-fips 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
debug1: Connecting to 192.168.0.68 [192.168.0.68] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1


WIth the wireless enabled I get the following

ssh -v 192.168.0.68
OpenSSH_5.9p1, OpenSSL 1.0.0j-fips 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
debug1: Connecting to 192.168.0.68 [192.168.0.68] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.4
debug1: match: OpenSSH_6.4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 15:cc:f7:e4:96:23:63:1c:13:45:fd:5a:d1:c1:fa:9c
debug1: Host '192.168.0.68' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password

WF_Jester
Posts: 4
Joined: 2014/07/25 20:41:54

Re: Disabled Wireless causes ssh to be broken on wired conne

Post by WF_Jester » 2014/07/30 16:31:56

found it

BOOTPROTO=none

was the problem

BOOTPROTO=static

fixed it at least it has for the past 5 minutes.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Disabled Wireless causes ssh to be broken on wired conne

Post by TrevorH » 2014/07/30 17:46:13

Won't make any difference: the only values that count are 'dhcp' and 'bootp', everything else means static, doesn't matter if it's none, static, mickeymouse or uncletomcobbley, all mean the same thing.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply