Centos Ssh Network Error Connection Refused
Contents |
2nd NIC - "Network Error: Connection Refused" Issues related to configuring your network Post Reply Print view ssh connection refused centos 7 Search Advanced search 10 posts • Page 1 of 1 Klio putty ssh network error connection refused Posts: 4 Joined: 2012/05/24 18:06:48 SSH Access from 2nd NIC - "Network Error: Connection Refused" Quote
Ubuntu Ssh Network Error Connection Refused
Postby Klio » 2012/05/24 18:13:47 Hello,Firstly I'm a Windows admin a few months into CentOS so excuse me if this is a simple issue.I've got a server
Vmware Ssh Network Error Connection Refused
with 2 NIC on different ranges:192.168.0.245192.168.100.245I can view web pages served by the server over both IP Addresses.I can SSH into the server from the 192.168.100.x network to server address 192.168.100.245I cannot SSH into the server from the 192.168.0.x network to the server address 192.168.0.245, I get the simple error: "Network Error: Connection fedora ssh connection refused Refused".I'm using IP Tables and this is the result of iptables -L --line-numbers:Chain INPUT (policy ACCEPT)num target prot opt source destination1 RH-Firewall-1-INPUT all -- anywhere anywhereChain FORWARD (policy ACCEPT)num target prot opt source destination1 RH-Firewall-1-INPUT all -- anywhere anywhereChain OUTPUT (policy ACCEPT)num target prot opt source destinationChain RH-Firewall-1-INPUT (2 references)num target prot opt source destination1 ACCEPT all -- anywhere anywhere2 ACCEPT icmp -- anywhere anywhere icmp any3 ACCEPT esp -- anywhere anywhere4 ACCEPT ah -- anywhere anywhere5 ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns6 ACCEPT udp -- anywhere anywhere udp dpt:ipp7 ACCEPT tcp -- anywhere anywhere tcp dpt:ipp8 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED9 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp10 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http11 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https12 ACCEPT tcp -- 192.168.100.0/24 anywhere state NEW tcp dpt:netbios-ssn13 ACCEPT tcp -- 192.168.100.0/24 anywhere state NEW tcp dpt:microsoft-ds14 ACCEPT tcp -- 192.168.100.0/24 anywhere state NEW tcp dp
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have
Debian Ssh Connection Refused
Meta Discuss the workings and policies of this site About Us Learn linux ssh connection refused more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us network error connection refused putty Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a http://www.centos.org/forums/viewtopic.php?t=27036 minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to solve 'Connection refused' errors in SSH connection? up vote 50 down vote favorite 14 I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from http://askubuntu.com/questions/30080/how-to-solve-connection-refused-errors-in-ssh-connection my PC via Putty. The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error like this: Network error: Connection refused. Then, I dont't change anything, try to login a few times more, wait a while and try again. Sometimes I can log in, sometimes I cannot. It seems pretty random to me. What can I do to solve this? Edit: And Sometimes, Putty gives Network error: Software caused connection abort error after displaying login as: text. Here is the ping -t output: Pinging 192.168.2.254 with 32 bytes of data: Reply from 192.168.2.254: bytes=32 time=6ms TTL=64 Reply from 192.168.2.254: bytes=32 time=65ms TTL=6 Reply from 192.168.2.254: bytes=32 time=88ms TTL=6 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=3ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 I turned off firewall of router, and everything seems to work now. Except for that, I still can't enter my web server by typi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about http://unix.stackexchange.com/questions/243170/ssh-connection-refused-in-centos hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top SSH Connection Refused In CentOS? up vote 1 down connection refused vote favorite For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am not sure if I installed anything yesterday that would interfere with port 22. I installed vsftpd, but that uses port 21. I ran the command ssh -vvv dougieb36@162.243.7.7 in the terminal to get more information. Here are my results: OpenSSH_6.9p1, LibreSSL 2.1.7 network error connection debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 162.243.7.7 [162.243.7.7] port 22. debug1: connect to address 162.243.7.7 port 22: Connection refused ssh: connect to host 162.243.7.7 port 22: Connection refused Next, I went to my actual server and typed service sshd status and got this(sorry that I couldn't get this in text. DigitalOcean doesn't let me copy from their terminal): Here is part of what journalctl -u sshd.service outputs: Anyone know what is happening? My config file didn't change at all. This is a bit frustrating. centos ssh terminal sshd openssh share|improve this question edited Jun 18 at 20:31 Jakuje 8,24831436 asked Nov 15 '15 at 18:28 Doug Beney 3516 what is in server log (/var/log/secure)? –Jakuje Nov 15 '15 at 18:56 Where should I look in the file? It is huge. I'm not quite sure if that file records connection attempts that result in "Connection refused"; If so, I didn't see anything when I tailed it. –Doug Beney Nov 15 '15 at 19:09 I would open it in a viewer, go to the end of the file, and search backwards for "ssh". Like this: less -i /var/log/secure, hit G to go to the end of the file, type ?ssh