LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-03-2010, 06:08 AM   #1
anaigini45
Member
 
Registered: Nov 2009
Posts: 49

Rep: Reputation: 15
Logging into a remote server


I want to login to my company's server (remote) from my room. I have the server address, so I use this command to login :

Code:
#ssh root@X.X.X.X
It waits for a very long time and then returns with error connection timed out port 22.

I configured these settings in the remote server :

Code:
#/etc/init.d/iptables stop
Then I connect via ssh from my home but still the same error.

Then in the config file /etc/ssh/sshd_config, I uncomment the line :
ListenAddress 0.0.0.0

I connect via ssh again from home but still the same error.

The connection is not denied in hosts.deny and hosts.allow.

How do I get the connection up and running? Pls help...
 
Old 01-03-2010, 06:09 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
is port 22 open and forwarded to the server on the router ?
 
Old 01-03-2010, 06:10 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Just a wild guess. Since you're referring to a company server, isn't there a firewall between the connection and the server? I'd assume yes if you set everything correctly on the remote server but still get no connection. Might be a simple firewall option on the broadband router the company uses or a dedicated one.

Kind regards,

Eric
 
Old 01-03-2010, 06:11 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by repo View Post
is port 22 open and forwarded to the server on the router ?
Darn repo, you beat me to that one. Just thought of it when submitting my post.

Kind regards,

Eric
 
Old 01-03-2010, 06:42 AM   #5
anaigini45
Member
 
Registered: Nov 2009
Posts: 49

Original Poster
Rep: Reputation: 15
This is what I get from my computer when I type nmap :

[root@localhost aigini]# nmap localhost

Code:
Starting Nmap 5.00 ( http://nmap.org ) at 2010-01-03 20:42 CST
Interesting ports on localhost (127.0.0.1):
Not shown: 995 closed ports
PORT     STATE SERVICE
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
631/tcp  open  ipp
7741/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds

How do I open port 22 here in my computer ?(I am assuming this is where the port should be open)

But when I connect (via ssh) to my company's cloud server(another address), it is successful without any configuration needed in my computer.

So does this mean that I have to open port 22 in the company's firewall on the broadband/dedicated router?

How do I do so?

Last edited by anaigini45; 01-03-2010 at 06:52 AM.
 
Old 01-03-2010, 06:56 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
So does this mean that I have to open port 22 in the company's firewall on the broadband/dedicated router?
yes
you need to forward port 22 to your server
Quote:
How do I open port 22 here in my computer ?(I am assuming this is where the port should be open)
port 22 doesn't has to be open on your computer, unless you want to connect from the outside to your computer using ssh
 
  


Reply



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
[syslog-ng] logging remote server by IP address noir911 Linux - Server 4 06-22-2018 08:01 AM
logging message on both remote and local server noir911 Linux - Server 4 10-22-2008 11:51 PM
logging to a remote syslog server is dropping packets draeician73 Linux - Security 1 10-20-2004 06:19 PM
remote logging linuxboy69 Linux - Software 3 02-25-2004 04:30 PM
Remote logging sts_cat Linux - General 2 04-30-2002 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 AM.

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
Open Source Consulting | Domain Registration