LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-20-2010, 11:08 PM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Rep: Reputation: 88
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-20-2010, 11:29 PM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
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-20-2010, 11:30 PM   #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, 12:39 AM   #4
rich_c
Member
 
Registered: Apr 2008
Location: UK
Distribution: PeppermintOS
Posts: 387
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-21-2010, 11:59 PM   #5
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
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, 02:04 AM   #6
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
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



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 04:27 AM
Changing SSH port markjuggles Linux - Security 6 05-01-2009 12:11 PM
Changing ssh port by cl rockjr Linux - Server 10 04-15-2009 09:53 PM
Telnet default port changing shivanrathore Linux - Newbie 1 10-17-2008 11:20 AM
Sendmail and changing it's default listening port... darkarcon2015 Slackware 7 01-20-2005 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

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
Open Source Consulting | Domain Registration