LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2010, 12:08 AM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 584

Rep: Reputation: 37
Question Changing SSH default port


Hi,

is it a bad idea to change SSH's default port (22) to a different port number?
Thx!
 
Old 04-21-2010, 12:29 AM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 219Reputation: 219Reputation: 219
It's only really a bad idea if you want easy access for multiple shell users . . . why would you want to change it? "Security through Obscurity?" Sshd is not vulnerable to any exploits . . . nor has any version of it been to my knowledge over the past ten years or so . . .
 
Old 04-21-2010, 12:30 AM   #3
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
Depends why you're doing it. If it's to stop unauthorized access attempts some would argue that security by obscurity is not very secure. On the other hand, it does stop a lot of the script kiddy password attacks that generally only look for 22 and 2222 or similar.
 
Old 04-21-2010, 01:39 AM   #4
rich_c
Member
 
Registered: Apr 2008
Location: UK
Distribution: Mepis; Maemo; openSUSE
Posts: 384
Blog Entries: 74

Rep: Reputation: 81
Personally, I prefer to take steps to ensure ssh is secure without changing ports. Have a look at my blog post on the subject for some ideas.
 
Old 04-22-2010, 12:59 AM   #5
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 584

Original Poster
Rep: Reputation: 37
Hey guys! I apologize for not specifying the reason why I changed the SSH port. I have 1 server and my home computer running behind a router/firewall so I have port 22 opened for the server so i changed the SSH port on my home computer to be able to access it from outside as well.
Thanks for the quick response!
 
Old 04-22-2010, 03:04 AM   #6
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 219Reputation: 219Reputation: 219
Well, in that case, no . . . it makes total sense to change the default port. Hehehe . . . you should make it port 111 or 121 (SunRPC). . . set up any potential hackers for a quick bout of excitement followed immediately by disappointment.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default port of SSH service redscorpion69 Linux - Networking 4 11-18-2009 05:27 AM
Changing SSH port markjuggles Linux - Security 6 05-01-2009 01:11 PM
Changing ssh port by cl rockjr Linux - Server 10 04-15-2009 10:53 PM
Telnet default port changing shivanrathore Linux - Newbie 1 10-17-2008 12:20 PM
Sendmail and changing it's default listening port... darkarcon2015 Slackware 7 01-21-2005 12:17 AM


All times are GMT -5. The time now is 10:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration