Solved

Changing SSH port

Posted on 2000-03-06
4
267 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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux MD5 Hash 7 97
IMAP copying tool 14 76
Enable SPF on IMSVA 6 67
NFS v4 7 76
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

751 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