LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-29-2008, 10:54 PM   #1
jezzer45
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Help with port 22


Hello, I'm a newbie to RHEL 5. I'm have an outside tech to configure some programs for me but he wants me open port 22 and find out the password, How do I do that? Thanks in advance.
 
Old 07-29-2008, 11:14 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Not knowing anything about your setup, or abilities, we'll start slowly. (the outside tech can't help you here?)

Do you have a firewall/router between your ISP and the box?
Do you have iptables and/or SELinux running on the box?

1) sshd has to be running
2) you need to create an account for the user and give the user the username/password
3) you may need to configure /etc/sudoers to give elevated permissions for operations that require root access

Its hard to give more advice since there's not enough here to go on. We don't know what the tech can/can't do, or is going to do.
 
Old 07-30-2008, 01:52 AM   #3
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 30
edit your firewall and allow 0.0.0.0/0 to port 22. or if you know the IP block of the person going in just allow his network. the password he's asking is the root password of your server.
 
Old 07-30-2008, 08:55 AM   #4
jezzer45
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
reply

I do have a router with firewall (linksys), and I believe Selinux is running. When I check which ports are open 22 is one of them. So if I just create a user/password for the tech he should be able to access my server from a remote location? Thanks for the advice
 
Old 07-30-2008, 09:24 AM   #5
cyclepathology
LQ Newbie
 
Registered: Sep 2007
Location: Seattle, WA
Distribution: Red Hat, Ubuntu, PCLinuxOS, Fedora, Vector Linux, CentOS, HP-UX, Solaris, AIX, FreeBSD
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by jezzer45 View Post
I do have a router with firewall (linksys), and I believe Selinux is running. When I check which ports are open 22 is one of them. So if I just create a user/password for the tech he should be able to access my server from a remote location? Thanks for the advice
Not necessarily.

1. Your router probably needs to forward incoming port 22 traffic to the IP address of your machine.
2. You may have to adjust firewall rules to allow the incoming connection.
3. You may have to create an account for him as recommended earlier in the thread - the sshd_config in some distros does not allow root log in. In your case, that's probably the correct thing to do.

Be advised that opening port 22 to a system with an active sshd guarantees that your system will be probed with brute force break in attempts frequently. Use good passwords.
 
Old 07-30-2008, 10:22 AM   #6
jezzer45
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
reply2

After I configure the router to forward to port 22, What would be the password he is looking for to access the system, let me post on what his directions are: Please download a copy of the 32 bit ISO, the current one is 1.2, and install it.When you are done, please open up port 22, and send me the password for the system, so I can build and configure A2Billing. When that is done, we can start with the familiarisation.
 
Old 07-30-2008, 12:03 PM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
adduser or useradd and *create* an account for the user. You select the username and password. Then you give it to him/her.

Don't enable root login via ssh - its not necessary here, and is a risk (somehow I get the feeling you will use a very guessable password).

You can give the root password to the tech, or your username/password, or configure sudo as I mentioned.
 
  


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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
Configuring Automatic Redirects from port 80 to port 443 with bundled Apache server kaplan71 Fedora 1 12-28-2007 09:30 AM
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 04:27 PM
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 01:59 AM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 07:06 PM


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