I have VPS with CENTOS 6.4 x86_64 virtuozzo – vps9458 and WHM 11.34.1 (build 14). I am trying to connect server by Putty but I am only getting below error:
server unexpectedly closed network connection
My WHM url look like this 1.2.3.5:2087 and in putty I am using 1.2.3.5 as Host name and 2087 as port. I always see error above.
Please guide what I am doing wrong.
Thanks
Usually connecting via putty using SSH you will need to be on port 22. So try port 22 instead.
2087 is for cpanel/whm and is meant for the web browser only.
If it still doesn't work email your web hosting provider.
Related
I have been given a centos server to lauch eclipse orion code editor. I installed eclipse orion as per the instruction on https://wiki.eclipse.org/Orion/How_Tos/Install_Orion_on_Localhost (steps for linux using jetty server). It works fine on centos browser. The centos os is running on 198.168.1.226. So that I can access the following urls on web browser of centos.
198.168.1.226:8080
localhost:8080
127.0.0.1:8080
0.0.0.0:8080
But when I tried to access the 198.168.1.226:8080 from other local machines on local network, that is not accessible. I searched the StackOverflow Questions like how to make jetty server accessible from LAN? and Unable to access jetty server with local IP address but both are useless for me. How can I fix this situation? Can I fix it editing the code on orion.ini file or need to deal with configuration file or something else?
I have also tried the orion for windows computer but it worked itself for accessing the orion system for any other computer in local network. But I am surprised to face it on centos using the jetty server for setting up eclipse-orion system .
First of all check that have you allowed specific port (8080) from eclispse.
add rule with that port no. in centos iptables as below:-
iptables -A INPUT -p tcp --dport 8080 (adjust according your port no.) -j ACCEPT
I've installed cloud 9 Ubuntu 14.04 (Desktop), and executed it by typing:
node [cloud9folder]/server.js -p 8080 -a :
I was able to connect to it by typing localhost:8080 (On the same computer that is running cloud 9) but when I went on another computer on the same network, I was unable to connect by typing [ip address of the computer running cloud9]:8080 into the browser. The browser returned: "Webpage not available (ERR_CONNECTION_REFUSED)."
I know the server computer is working, I was able to access it's apache2 website but for some reason it is unable to connect to cloud 9.
How do I fix this?
also add -l 0.0.0.0 by default server is listening on 127.0.0.1 which is not public
Host Machine - Win 7
Guest - Fedora
I have installed nginx web server on guest fedora machine and I can access the webpage inside guest machine using the interface address. How can I access the web page from host machine's browser ?
I am using bridged connection.
Router is assigning 192.168.0.16 to the guest machine's interface. I tried same address in my host machine but it doesn't work.
Based on your description:
First you should check your web application's config. You don't mention which type of your web application running on your Apache server, some are launched with the specific ip argment 127.0.0.1( or localhost), so kind of these web application can only be visited on your localhost computer. You should change the ip argument to 0.0.0.0
Second if the "Fisrt" failed, check the connection of the two server(host and your guest) by using telnet.
On your Win7, you can use the command:
telnet ip port
for example:
telnet 192.168.0.16 80
80 is the default port of Apache Http(s) Server.
if the command don't show the "connection refused" error, your Apache server is goood, so it might be something wrong of your web application.
If that, show me your error msg then we go on further.
I am trying to setup a remote apache server on centos. I have installed httpd and it is listening to port 80 as it is supposed to. And I am able to connect to the remote system through ssh. but when I try to access the apache server on website using the ip address browser is giving 'Could not connect to error".
My iptable looks like this
I have tried solutions from this question and none of them are working.
Could you have something using NAT in between ? If yes then you have to configure port forwarding.
If you disabled the SELinux using:
setenforce 0
then your server may be behind a firewall, or NAT, and port 80 need to be enabled there.
I've a webserver with xdebug 2.0.3 and Komodo 6 with Windows 7 64 bit but I can't connect to xdebug? I've tried a reverse shell with cygwin and I can connect to my server however when I try the debugger option in Komodo it gives me an error. In Komodo I've open a remote ftp session to load my file from the host. Normally with Linux it works with a reverse shell.
Edit: It's a bit on top of my head so I'm trying to debug my local virtual machine but Komodo gives me this error couldn't bind to local port 9000 and I don't have a firewall. when I enable debugging in the browser window with my opera extension I get success message client found in my xdebug log and when I load my html page but the connection is closed after the loading and it's not breaking at my breakpoint either. Here is the output from message log:
Log opened at 2012-04-30 08:48:40
I: Checking remote connect back address.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
xdebug" fileuri="file:///htdocs/typo3_src-4.7.0/index.php" language="PHP"
protocol_version="1.0" appid="5101" idekey="komodo-xdebug"><engine
version="2.2.0rc2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></
author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c)
2002-2012 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
xdebug" status="stopping" reason="ok"></response>
Log closed at 2012-04-30 08:48:41
My webserver is a lighttpd with FastCGI but that shouldn't be the problem because I already got it working with a remote host and a reverse shell but not in Windows 7 and with Vmware or in Vmware? I'm currently reading this post http://forums.netbeans.org/topic1513-30.html and I hope it helps.
Also I cannot see that a server is listening on port 9000. Is this a Vmware problem?
EDIT: I got it working on my virtual machine but I'm still interested in solving this issue:
xdebug connecting from host to virtual machine
xdebug connecting from host to remote machine (it works for me but only with a reverse shell)
xdebug connectiong from virtual machine to remote machine (didn't test it yet)
What can be interesting to is developement in Windows 7:
xdebug connecting from Windows 7 to remote machine
xdebug connection from Windows 7 to virtual machine
Use the debugger connection preferences to set the IP address of the virtual machine as the debugger proxy. Change the port that Komodo listens to from the default value of 9000 to a system provided free port, 8080, or whatever port your virtual host or localhost is running.