LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-07-2004, 08:46 AM   #1
DesertWolf0132
Member
 
Registered: Oct 2003
Distribution: Mdk 9.2, Slack 10
Posts: 37

Rep: Reputation: 15
Question Where do I go to allow RFB and ssh connections in MDK 9.2?


I have a system set up on a network for remote administration with security set one below paranoid. Where do I need to enable access for RFB and ssh fro me to be able to connect to these services? I have already DMZ'ed the server on the router and Shorewall is running pretty darn tight.
 
Old 06-07-2004, 09:55 AM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
You need to open port 22 (inbound) in shorewall for SSH. Not sure about RFB. I think it uses VNC ports, so 5864, 5964, and 6064 need to be open also.
 
Old 06-07-2004, 10:10 AM   #3
DesertWolf0132
Member
 
Registered: Oct 2003
Distribution: Mdk 9.2, Slack 10
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks. I am heading out to that remote location today to give this a try. Hopefully all goes well. Is there any other possible configs I need to edit to make this go? Just want to cover all bases before heading out. Thanks again.
 
Old 06-07-2004, 12:02 PM   #4
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
I like to disallow root access through SSH so you have to connect as a regular user and then su - to do any admin work. This stop brute force password attacks on root. Even if they get the password, the get the same error message as if the wrrng password was entered. To do this, edit /etc/ssh/sshd_config and make sure these lines are in your file:

Port 22
Protocol 2 <-- This is important!

SyslogFacility AUTHPRIV
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no <-- This is the one for root denial!

Banner /etc/ssh/ssh_banner
VerifyReverseMapping yes

I add the Banner line and it displays the contents of /etc/ssh/ssh_banner file when users attempt to login. Mine says something like:

Code:
This system is for use only by authorized XYZ Company IS employees!
By completing the log in process, you agree to the following terms:
You are an IS Dept. employee of XYZ Company and are authorized to use this system.
All actions may be logged, monitored and reported.
IP & MAC addresses are logged.
Reverse mapping can be useful also in log files.

I can't help at all with RFB, sorry!
 
Old 06-07-2004, 12:17 PM   #5
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Unhappy

Ooops, I lied! They do not get the same error message, they just get disconnected... Still they can not login as root.

ssh root@test

This system is for use only by authorized XYZ IS employees!
By completing the log in process, you agree to the following terms:
You are an IS Dept. employee of XYZ and authorized to use this system.
All actions may be logged, monitored and reported.
IP & MAC addresses are logged.

root@test's password:
Read from remote host everest: Connection reset by peer
Connection to test closed.
 
Old 06-11-2004, 08:31 AM   #6
DesertWolf0132
Member
 
Registered: Oct 2003
Distribution: Mdk 9.2, Slack 10
Posts: 37

Original Poster
Rep: Reputation: 15
Still nada...

Can anyone think of any other places that might be blocking my connection? I tried to connect to both RFB and SSH and both connections are still denied. I vaguely remember one other place you have to allow connections other than /etc/shorewall/rules when MDK security is set to high. Can anyone please refresh my memory?
 
  


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
Problems with SSH connections Kero-Chan Linux - Networking 10 10-15-2004 06:34 PM
SSH doesn't accept connections basse- Linux - Software 1 05-23-2004 07:33 AM
Can I see ssh connections? bruno buys Linux - Networking 4 11-19-2003 02:46 PM
SSH is blocking my connections tarballedtux Linux - Security 8 11-01-2002 04:19 PM
SSH - Refused Connections bfloeagle Linux - Networking 6 08-31-2001 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:48 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