Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-21-2003, 06:45 AM
|
#1
|
|
Member
Registered: May 2002
Posts: 401
Rep:
|
problem with ssh.
Hi !!
I am trying to connect to a red hat 8 server that is on a DMZ .
I recieve a connection refused error.
whan I am sitting on that server and I telnet to local host on port 22 the server answeres. I am passing throw one Firewall but on the FW logs I see that all the connections in ssh to that server are accepted.
what to do ?
thanks
|
|
|
|
07-21-2003, 10:03 AM
|
#2
|
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
You might need to open up the server to outside ssh requests (telneting to localhost uses the loopback interface). So make sure the server allows port 22 connections on the ext. interface. Check /etc/sysconfig/iptables and make sure you have something that resembles this:
-A INPUT -p tcp --dport 22 -j ACCEPT
Also depending on how you have the server configured, you might need to add the ip address of the host your trying to connect FROM to /etc/hosts.allow
|
|
|
|
07-21-2003, 10:46 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2001
Location: Manchester
Distribution: RedHat 9.0, FreeBSD
Posts: 24
Rep:
|
if your able to bring up a console on that server then try running sshd in debug mode on a seperate port ie
sshd -d -d -d -p 2020
then ssh to the server using
ssh -v -p 2020 ipaddress
note the output from both consoles somewhere it should give a clue to why it fails
|
|
|
|
07-22-2003, 02:27 AM
|
#4
|
|
Member
Registered: May 2002
Posts: 401
Original Poster
Rep:
|
o.k. now I am recieving a response from the server:
(I AM TRYING TO CONNECT FROM A LINUX RED HAT):
[juan@juanlin juan]$ ssh 212.143.234.6
The authenticity of host '212.143.234.6 (212.143.234.6)' can't be established.
RSA key fingerprint is a2:a5:f4:f6:0d:f0:67:33:6f:16:34:37:7d:4a:aa:d2.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '212.143.234.6' (RSA) to the list of known hosts.
juan@212.143.234.6's password:
WHAT PASSWOED HE'S ASKING FOR ?
i TRIED THE ROOT PASSWORD AND HE REFUSE TO THAT PASSWORD. WHAN I TRY TO CONNECT TO THE MACHINE FROM A WIN 2000 WITH PUTTY CLIENT EVERYTHING WORKS.
WHY IN LINUX EVERYTHING IS SO COMPLICATED ?
|
|
|
|
07-22-2003, 06:59 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2003
Location: $HOME
Distribution: RedHat, Knoppix
Posts: 6
Rep:
|
Hi Juanb
The password requested will be the password of a local user on the box you are trying to access.
If mickey mouse had an acount such as mmouse, then add the following
-l mmouse
to the ssh command. When asked, mmouse can then type the password of that account.
|
|
|
|
07-22-2003, 07:12 AM
|
#6
|
|
Member
Registered: May 2002
Posts: 401
Original Poster
Rep:
|
thank u very much !!
|
|
|
|
07-23-2003, 03:11 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2003
Location: $HOME
Distribution: RedHat, Knoppix
Posts: 6
Rep:
|
Glad it helped.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|