LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2014, 07:33 AM   #16
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by fortran View Post
If a site is hosted on the server, it means port 80 or 443 should be opened there (default http or https ports)
Can you open the website installed on server in browser from your system?
Yes I can open the website from my browser without any problems at all, is that a good sign?
 
Old 08-05-2014, 07:44 AM   #17
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
It is not a serious problem, do not panic.
May be I am not able to sort it out but do not worry, changing port is not a big damage, it will be resolved. If I will not be able to resolve it, an expert will resolve here.
Are you able to connect to any other system of your network using ssh?
 
Old 08-05-2014, 07:44 AM   #18
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
He didn't confirm it was down, he confirmed he didn't set it up and doesn't manage it. He also stated he was on a secure network which means...
it's probably the firewall.
Ask your sys admin to take a look at it.
 
Old 08-05-2014, 07:48 AM   #19
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fortran View Post
It is not a serious problem, do not panic.
May be I am not able to sort it out but do not worry, changing port is not a big damage, it will be resolved. If I will not be able to resolve it, an expert will resolve here.
Are you able to connect to any other system of your network using ssh?
Thank you so such, I've been so worried about this - I didn't sleep last night!

We have two internal sites, a live one and a dev one. I can connect to the dev site using ssh -i keyname.pem ubuntu@dev_host as well as ./deploy.sh devsite I thought I'd changed the ports on the dev server as well but I didn't restart that so am still able to connect
 
Old 08-05-2014, 07:50 AM   #20
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
He didn't confirm it was down, he confirmed he didn't set it up and doesn't manage it. He also stated he was on a secure network which means...
it's probably the firewall.
Ask your sys admin to take a look at it.
Sorry to be awkward but there is no systems admin. It's just me and google trying to do this. The site doesn't have an SSL so can be viewed at http but uses Google login to keep it secure
 
Old 08-05-2014, 08:54 AM   #21
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
You probably just need to open the port. Ask the hosting company how to do that, or perhaps they will do that for you.
 
Old 08-05-2014, 09:15 AM   #22
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
You probably just need to open the port. Ask the hosting company how to do that, or perhaps they will do that for you.
It's an AWS EC2 hosted site so I'd have top open the ports myself
 
Old 08-05-2014, 10:09 AM   #23
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
If nmap is installed on the server, you can list the opened port of the server.
Quote:
nmap ip-of-the-server
Quote:
nmap 10.32.0.51
 
Old 08-05-2014, 10:17 AM   #24
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fortran View Post
If nmap is installed on the server, you can list the opened port of the server.
That gave me the error: -bash: mmap: command not found
 
Old 08-05-2014, 10:22 AM   #25
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
It is nmap not mmap.
Install it and find if port is opened or not.

---------- Post added 08-05-14 at 09:23 AM ----------

Quote:
Originally Posted by Noobie1212 View Post
That gave me the error: -bash: mmap: command not found
It is nmap not mmap.
Install it and find if port is opened or not.
 
Old 08-05-2014, 10:32 AM   #26
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fortran View Post
It is nmap not mmap.
Install it and find if port is opened or not.

---------- Post added 08-05-14 at 09:23 AM ----------


It is nmap not mmap.
Install it and find if port is opened or not.
Sorry that was my computer auto correcting, the error is -bash: mmap 12.34.5.678

How do I install it? Sorry I don't mean to ask dumb questions but I really don't know

Last edited by Noobie1212; 08-05-2014 at 10:56 AM.
 
Old 08-05-2014, 10:40 AM   #27
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Do not paste your IP, it is dangerous.

if server is ubuntu or debian based, run command
sudo apt-get install nmap

if it is RHEL/ CentOS/ fedora, run command
sudo yum install nmap
 
Old 08-05-2014, 10:56 AM   #28
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fortran View Post
Do not paste your IP, it is dangerous.

if server is ubuntu or debian based, run command
sudo apt-get install nmap

if it is RHEL/ CentOS/ fedora, run command
sudo yum install nmap
Thanks, I hadn't realised I'd put the IP address, I've removed it now.

I've just tried to install it and got this: sudo: apt-get: command not found

Last edited by Noobie1212; 08-05-2014 at 10:57 AM.
 
Old 08-05-2014, 11:11 AM   #29
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
I have checked your IP, it is showing port 22 is closed and port 80 is opened.
You need to restart the ssh service and try to make it work on port 22, when it will work on 22, change the port number and restart ssh again.
 
Old 08-05-2014, 11:25 AM   #30
Noobie1212
LQ Newbie
 
Registered: Aug 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fortran View Post
I have checked your IP, it is showing port 22 is closed and port 80 is opened.
You need to restart the ssh service and try to make it work on port 22, when it will work on 22, change the port number and restart ssh again.
I try to restart it using sudo service ssh restart It then asks for the password, I enter it then I get this error: sudo: service: command not found

I'm sorry I'm sure I'm being a pain but I'm just so desperate to get this sorted
 
  


Reply


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
Initiate ssh tunnel to connect to ssh? brianmcgee Linux - Security 2 09-07-2011 11:07 AM
Able to connect via SSH but not able to connect via web port 80 Orange Sunshine Linux - Server 9 04-03-2010 08:11 PM
iptables help! DROP ssh port, but allow to connect to ssh if from 2222 port kandzha Linux - Networking 4 09-13-2006 10:10 AM
ssh + pop3 with kmail: Could not connect to host localhost, but ok without ssh Emmanuel_uk Linux - Networking 0 07-20-2006 05:56 PM
Can't connect via ssh _TK_ Linux - Networking 3 04-27-2001 07:16 PM


All times are GMT -5. The time now is 08:09 PM.

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