- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to change Default PORTS ???
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2005 10:23 PM
тАО01-21-2005 10:23 PM
Does any one know how to change the default ports in linux. Like SSH service uses 22 port.
Senerio: My Server is 192.168.0.1 and client is 192.168.0.2 now SSH service is ON on My server but when my client will SSH on the server it will by default use 22 port which i dont want. I want to configure some other port which my client uses to log in how can i configure that ?
What are the configurations required and is it possible for every port like http and other ports too?
Thanks in advance
Deep
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2005 03:34 AM
тАО01-22-2005 03:34 AM
Solution1. for ssh client you can modify default port by adding line to file /etc/ssh/ssh_config:
Port Number
2. for ssh server the same line but in server config file
/etc/ssh/sshd_config
When you modify sshd_config file you have to restart sshd daemon.
For details look at man pages:
man ssh_config
man sshd_config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2005 06:44 PM
тАО01-22-2005 06:44 PM
Re: How to change Default PORTS ???
Just one question
Is this possible for all the ports like http and telent ..... etc...?
if yes we just need to change the ports and restart the services right ????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2005 10:14 PM
тАО01-22-2005 10:14 PM
Re: How to change Default PORTS ???
it is not posible to change ports for all
server daemons. More easy is to set ports for
servers than clients site.
Ex.
for http apache server- you can configure port
in httpd.conf, client has default port 80 and
I don't know how to change this (it may depends
on your web browser)
For telnet server you can modify (x)inetd config file, from client site you must run
telnet command with port number.
man in.telnetd
man telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2005 04:48 AM
тАО01-23-2005 04:48 AM
Re: How to change Default PORTS ???
http::/foo.bar.baz:12345/
Of course, there is the question of "why?" Why do you want to change the port numbers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2005 03:20 PM
тАО01-23-2005 03:20 PM
Re: How to change Default PORTS ???
Unless you have a specific reason to change ports it is wise to use the standard ports. You can find most of the standard ports in the /etc/services file.
The latest IANA port assignments can be gotten from http://www.iana.org/assignments/port-numbers
The port numbers are divided into three ranges: the Well Known Ports,
the Registered Ports, and the Dynamic and/or Private Ports.
The Well Known Ports are those from 0 through 1023.
The Registered Ports are those from 1024 through 49151
The Dynamic and/or Private Ports are those from 49152 through 65535
Regards,
Ross