LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2003, 03:55 PM   #1
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Rep: Reputation: 15
ssh problems


I am trying to connect from my work to my home pc (red hat 8.0 fresh install). My work has a firewall, and I have changed the port in /etc/services to 23 (telnet has also been changed to another port so that port is not bieng used by anything else). I have ran xinetd, and shhd after i made the changes. But when I try to connect from my work to that port, I cannot connect. I'm logged in through telnet from my work, and can see sshd running. There is no firewall software running. Any thoughts?


Thanks,
Digsby
 
Old 02-07-2003, 04:54 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Any particular error messages or does it just timeout ? You most likely need to change the port in the /etc/ssh/sshd_config as well and then restart the ssh services for it to start working on port 23 instead of 22.
 
Old 02-07-2003, 05:04 PM   #3
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
ok changed that and closed sshd, and ssh-agent, and then ran them both. I also ran xinetd from /usr/sbin (thats also were i ran the other 2 programs from) but it still gets a connection failed, time out error. Am I missing any programs to run?


Thanks,
Digsby
 
Old 02-07-2003, 05:04 PM   #4
etherdeath
Member
 
Registered: Apr 2002
Location: New York City
Distribution: Debian
Posts: 30

Rep: Reputation: 15
Can you ssh to localhost when you're logged in at the machine, ie not through the firewall?
 
Old 02-07-2003, 05:12 PM   #5
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
What I typed:

ssh localhost 23

What it told me:
ssh: connect to address 127.0.0.1 port 23: Connection refused

So when I go home, I should allow ssh on the firewall? I am using the stock Red Hat firewalla tools.

Thanks
Digsby
 
Old 02-07-2003, 05:13 PM   #6
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
Or......
Is there any way to grant permission to ssh so it can go through the firewall, or turn off the firewall?

Thanks,
Digsby
 
Old 02-07-2003, 05:28 PM   #7
etherdeath
Member
 
Registered: Apr 2002
Location: New York City
Distribution: Debian
Posts: 30

Rep: Reputation: 15
If you can't connect to localhost via ssh, then you may want to investigate that first; the firewall may not be a problem at all. If it is a firewall issue, ssh doesn't have anything to do with it if it's your work's firewall (ie not a software firewall running on the same machine as sshd)
 
Old 02-07-2003, 06:09 PM   #8
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
Well. I had my telnet set to 23, and could connect from work to home, so I know port 23 is not blocked on the company firewall. And now I have changed telnet to another port that works, and set ssh to 23, and I have no luck. So could I just kill a firewall app? And if so what is the name of the app

Thanks,
Digsby
 
Old 02-07-2003, 06:12 PM   #9
etherdeath
Member
 
Registered: Apr 2002
Location: New York City
Distribution: Debian
Posts: 30

Rep: Reputation: 15
It doesn't sound like a firewall problem. If you can't even connect locally when you're at work, then something is probably misconfigured.

Also, killing the firewall would only be possible if the firewall is running on the same machine. There are several firewalls, so you would have to figure out which is running.

Last edited by etherdeath; 02-07-2003 at 06:13 PM.
 
  


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
Problems with SSH paul.nel Linux - Networking 17 08-09-2011 01:40 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
SSH problems newbie21209 Linux - Networking 10 06-17-2005 12:01 AM
problems with SSH hostprotect Linux - Software 2 01-11-2005 06:15 PM
SSH problems (but only one way) blueares Linux - General 3 10-21-2004 01:25 AM


All times are GMT -5. The time now is 12:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration