Computing.Net > Forums > Linux > Changing SSH port 22 to 23

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Changing SSH port 22 to 23

Reply to Message Icon

Name: xnetfly
Date: June 25, 2002 at 05:49:26 Pacific
Comment:

You can change the port /etc/ssh/sshd_config (or some config file in /etc). In mine, it's on the 8th line. Then I restarted sshd. But when I run
%nmap localhost
Port State Service
22/tcp open ssh
23/tcp open telnet
79/tcp open finger
111/tcp open sunrpc
515/tcp open printer
6000/tcp open X11
It does not show 23 as the ssh port. Then I turn off telnet and still it does not show ssh coming in under 23 but still 22... Any help to how to switch this port over!!!?? THANKS



Sponsored Link
Ads by Google

Response Number 1
Name: Jake
Date: June 25, 2002 at 11:16:16 Pacific
Reply:

Did you try killing Telnet, then restarting SSH?

The only other thing I can think of is that you found the wrong config file. Try which sshd, and if it finds /usr/local/bin/sshd, then the config file is in /usr/local/etc.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Changing SSH port 22 to 23

Port 24 to Port 22 forward www.computing.net/answers/linux/port-24-to-port-22-forward/27389.html

cannot remote SSH to redhat 9 www.computing.net/answers/linux/cannot-remote-ssh-to-redhat-9/24180.html

ssh on linux not working. why ? www.computing.net/answers/linux/ssh-on-linux-not-working-why-/20463.html