Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd October 2012, 10:18 PM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
FC17 server is not accepting connections from ssh and other

Hello i run Fedora 17 x86 on my machine
I have also other servers like Centos and Fedora 16 and imacs
I want to have a normal functioning network


From my other fedora 16 server or my Mac i get this error while the openssh is running and is not firewalled, iptables is off and flushed (iptables -Z -F )

this happens all the time after retrying 10 or 20 times (random) i can connect.

ssh root@192.168.123.34
ssh: connect to host 192.168.123.34 port 22: Connection refused

(service is running)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 15657 832/sshd
tcp6 0 0 :::22 :::* LISTEN 0 15659 832/sshd


I have turned off NetworkManager and use the old "network" ( service network start )
but nothing is helping

i also have run udp6 and tcp6 connections ??
Why?
i also can't access other ports in my network?

Is it something with jumboframes? or?? i getting crazy
Reply With Quote
  #2  
Old 23rd October 2012, 10:43 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
linuxfirefox
Re: FC17 server is not accepting connections from ssh and other

Maybe firewalld is running and ssh port not open?
__________________
======
Doug G
======
Reply With Quote
  #3  
Old 24th October 2012, 07:35 AM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
Re: FC17 server is not accepting connections from ssh and other

Thanks for the answer.. but..

when i scan with nmap all is open.. nothing is filtered
i have disabled /etc/sysconfig/system-config-firewall
--disabled

--------------------------------------------------------
disable selinux

------------------------------------------------------------
and...

iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT


--------------------------------
Nmap scan report for 192.168.123.34
Host is up (0.00022s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
8888/tcp open sun-answerbook
MAC Address: 00:1D:92:FD:7D:BC (Micro-star Int'l Co.)


i think it's bug!

---------- Post added 24th October 2012 at 08:35 AM ---------- Previous post was 23rd October 2012 at 11:48 PM ----------

i also can't access smb / nmb and when i install fc16 there is no prolbem all is working well
Reply With Quote
  #4  
Old 24th October 2012, 01:17 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
windows_xp_2003firefox
Re: FC17 server is not accepting connections from ssh and other

Is the sshd service enabled and started on the server? Is ssh allowed through the firewall?

PHP Code:
systemctl enable sshd.service
systemctl start sshd
.service 
If things still don't work turn the firewall off temporarily and see if you can ssh into the server. If so, it's a firewall issue.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 24th October 2012, 01:19 PM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
Re: FC17 server is not accepting connections from ssh and other

ssh is on
firewall is off

this is what's happening

ssh 192.168.123.34
ssh_exchange_identification: read: Connection reset by peer

Marcels-iMac:~ marcel$ ssh root@192.168.123.34
root@192.168.123.34's password:
Write failed: Broken pipe

oot@192.168.123.34's password:
Last login: Wed Oct 24 00:37:18 2012 from 192.168.123.33


the 3th time is ok..
Also with all other deamons it's the same... it looks like a firewall think or ipv6 hell?
Reply With Quote
  #6  
Old 24th October 2012, 01:48 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
windows_xp_2003firefox
Re: FC17 server is not accepting connections from ssh and other

Try restarting the ssh server
PHP Code:
systemctl restart sshd.service 
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 24th October 2012, 02:40 PM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
Re: FC17 server is not accepting connections from ssh and other

Yes i did that. and also i restarted the entire server
i shutdown selinux
i shutdown iptables
i shutdown firewall (iptables)

what is between the eth0 (ehh) p33p1 and the other server?
jumbofames?

Last edited by marcelkraan; 24th October 2012 at 03:15 PM.
Reply With Quote
  #8  
Old 24th October 2012, 08:14 PM
MauserM98 Offline
Registered User
 
Join Date: Mar 2009
Location: Norway
Posts: 134
linuxchrome
Re: FC17 server is not accepting connections from ssh and other

Could you show us your sshd_config file? Or is that too private?
Reply With Quote
  #9  
Old 24th October 2012, 08:26 PM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
Re: FC17 server is not accepting connections from ssh and other

it's the default file... but i notised that i have more problems from MAc (mountain lion) then from other servers like debian and centos.


# $OpenBSD: sshd_config,v 1.84 2011/05/23 03:30:07 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 override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# The default requires explicit activation of protocol 1
#Protocol 2

# 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
#HostKey /etc/ssh/ssh_host_ecdsa_key

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

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

# Authentication:

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

#RSAAuthentication yes
#PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys

#AuthorizedKeysCommand none
#AuthorizedKeysCommandRunAs nobody

# 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
#KerberosUseKuserok yes

# GSSAPI options
#GSSAPIAuthentication no
GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# 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 and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
# problems.
#UsePAM no
UsePAM yes

#AllowAgentForwarding 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 delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none

# no default banner path
#Banner none

# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS

# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server

# Uncomment this if you want to use .local domain
#Host *.local
# CheckHostIP no

# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
Reply With Quote
  #10  
Old 24th October 2012, 10:01 PM
MauserM98 Offline
Registered User
 
Join Date: Mar 2009
Location: Norway
Posts: 134
Try to enable the line that says permit root login.

Sent from my HTC Incredible S using Tapatalk 2
Reply With Quote
  #11  
Old 24th October 2012, 10:03 PM
MauserM98 Offline
Registered User
 
Join Date: Mar 2009
Location: Norway
Posts: 134
And the line that says Port 22. Enable that too.

Sent from my HTC Incredible S using Tapatalk 2
Reply With Quote
  #12  
Old 24th October 2012, 10:09 PM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
Re: FC17 server is not accepting connections from ssh and other

almost... i tought also it was great.. but ahh :-)

Marcels-iMac:~ marcel$ ssh root@192.168.123.34
Write failed: Broken pipe
Marcels-iMac:~ marcel$ ssh root@192.168.123.34
ssh: connect to host 192.168.123.34 port 22: Connection refused
Marcels-iMac:~ marcel$ ssh root@192.168.123.34
ssh: connect to host 192.168.123.34 port 22: Connection refused
Marcels-iMac:~ marcel$ ssh root@192.168.123.34
ssh: connect to host 192.168.123.34 port 22: Connection refused
Marcels-iMac:~ marcel$ ssh root@192.168.123.34
ssh: connect to host 192.168.123.34 port 22: Connection refused
Marcels-iMac:~ marcel$ ssh root@192.168.123.34
ssh: connect to host 192.168.123.34 port 22: Connection refused
Reply With Quote
  #13  
Old 24th October 2012, 11:18 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
linuxfirefox
Re: FC17 server is not accepting connections from ssh and other

At the very least you need to un-comment the lines that currently read
PHP Code:
#Port 22
#Protocol 2 
Obviously, they should read
PHP Code:
Port 22
Protocol 2 
Restart sshd

PHP Code:
systemctl restart sshd.service 
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #14  
Old 24th October 2012, 11:29 PM
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
macoschrome
Re: FC17 server is not accepting connections from ssh and other

Yes i did that. .but .... but my mac is more terrible then the other computers..
Reply With Quote
  #15  
Old 24th October 2012, 11:30 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
linuxfirefox
Re: FC17 server is not accepting connections from ssh and other

Throw it away.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
Reply

Tags
accepting, connections, fc17, server, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Motion + wput open 8000 connections simultaneously on FC17; crashes router. Cubytus Using Fedora 0 18th October 2012 02:16 AM
Fresh FC17 Install : gnome_control_control-center-3.4.2-1.fc17.i686 CORE DUMP reflex Installation, Upgrades and Live Media 1 2nd June 2012 03:05 AM
heads up: xorg-x11-server-1.11.99.1-6.20111109.fc17 is a duffer AdamW F17 Development Forum 2 21st November 2011 10:40 PM
Smtp no longer accepting remote connections. yungblood Servers & Networking 0 27th January 2010 01:48 AM
Fedora 7 not accepting incoming connections RIgnazio Servers & Networking 6 18th August 2007 04:57 PM


Current GMT-time: 18:17 (Wednesday, 01-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat