Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing SSH port

Posted on 2000-03-06
4
Medium Priority
?
269 Views
Last Modified: 2013-12-16
Hello,

Can anyone tell me how to change my SSH configuration to listen on another port (preferably 23)?

I want to connect to my home box from work via SSH, but my company's proxy blocks 22.  Telnet (23), web (80) and maybe some others I do not know about are allowed.

I want to use RSA authentication.  If I understand the SSH manpage, I need to keep the port number low.

I tried modifying 'sshd_config' and 'ssh_config' to no avail.

Any ideas?

Thanks in advance,
CubeDweller
0
Comment
Question by:cubedweller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:karwoski
ID: 2590061
If you're using SSH2 you can change the port number in the /etc/ssh2/ssh2_config file.  In that file there's a line:

Port      22

and you can change that to whatever you want. If you have SSH1 and you don't have a SSH subdir in /etc just poke around in /etc for a file name with something to the effect of sshconfig.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 2590071
You can't do it by just changing SSH. Port 23 is already owned by telnet and ssh won't be able to listen on that port as long as inetd thinks it belongs to telnet. If you change inetd so that ssh will use 23 you'll prevent telnet from working on that system.

Why don't you try talking to the network administrators about enabling port 22 for ssh? They may have the others disabled for security reasons, but may not view ssh as being a significant risk.
0
 

Author Comment

by:cubedweller
ID: 2592588
Karwoski, thank you for your answer.

Jlevie is more correct though, since I had to disable telnet first to free up port 23.
0
 

Author Comment

by:cubedweller
ID: 2592619
Thank you again, jlevie.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question