LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-05-2003, 07:27 AM   #1
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Rep: Reputation: 15
Opening a port for telnet


I am running RH 8.0 and what I need is to find the file that lets me tell the o/s what port i want to open with telnet. I know its defaulted to 23, but I want to change that to a different number.

Please Help
Digsby

Last edited by digsby0007; 02-05-2003 at 07:32 AM.
 
Old 02-05-2003, 08:26 AM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
If I am thinking correctly (need caffeine) it is in
/etc/services

Just scroll down there and hash out the first one, and add a similar one later down the line, hopefully in numerical order, with comments above and/or below it that tell what you are doing and why. :_)


Also, any particular reason you are not using ssh?
 
Old 02-05-2003, 09:14 AM   #3
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
Here's a little background info on me. I'm pretty new to linux, and the reason I don't use ssh is I'm really sure what it is. My situation is that from work, the firewall blocks me on port 23 so I can't log into my machine. So what I have done in the past is change the port to 8080, and then I am able to connect. Now, if ssh would be a better way to connect please tell me how to use that, but keep in mind the firewall at work. My work machine is also a Win 98 box if that help.

Thank You for the Help,
Digsby
 
Old 02-05-2003, 04:55 PM   #4
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Code:
telnet <server IP>  <port#>

telnet somewhere 8080
 
Old 02-05-2003, 05:01 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
telnet is an unencrypted protocol and doesn't offer you protection from someone sniffing your user password when you login, ip spoofing, man-in-the-middle attack, sniffing your root password if you su to root while using telnet etc. Telnet has worked wondefully and has satisfied the remoting needs of millions of users, but in this day and age, whatever you type in to the telnet console is as good as it was 'transmitted'. Anyone looking to do some damage can find him a 'receiver' and grab your data packets and do whatever (s)he wishes with it..

SSH stands for Secure SHell that is more modern, behaves like telnet once you're connected, runs usually as a standalone service listening at TCP port 22 ( can be configured to listen to some different address) and uses asymmetric key pairs to encrypt/decrypt traffic. Visit http://www.openssh.org for an open source implementation of this protocol.

More information on obtaining, building and installing and configuring OpenSSH can be found at
http://www.unixwiz.net/techtips/openssh.html

I have more bookmarks on this, so if you need them I can post those too.
 
Old 02-06-2003, 09:14 AM   #6
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
If you install ssh, the easiest way to change the port on it in my experience is to open the

/etc/ssh/sshd_config

file, and change the Listen port. Default is 22, you would just change it to 8080, and test.
 
  


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 On
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 05:58 AM
Opening Port steve007 Linux - Newbie 5 07-23-2005 01:05 PM
opening a port Robin01 Linux - General 3 11-17-2004 10:40 PM
Opening a Port gpamkenny Linux - Networking 3 11-04-2004 02:51 PM
opening telnet in redhat 7.2 afzaal Linux - Security 5 04-21-2004 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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