LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-18-2007, 06:52 PM   #1
winkydo
Member
 
Registered: Jan 2005
Location: fort worth, tx
Distribution: fedora core
Posts: 30

Rep: Reputation: 15
cannot change ssh default port


i was looking at changing my ssh default port to 443. whenever i edit the 'Port' line in '/etc/ssh/ssh_config' and i run 'service sshd restart', it does not change the port. i can still connect via port 22 and i cannot connect via port 443.

am i editing the incorrect ssh_config?
 
Old 04-18-2007, 07:11 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
You should be editing sshd_config. And in case you didn't know, port 443 is usually used for secure http.
 
Old 04-18-2007, 07:19 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could check if sshd is started as an xinetd service. If so, the port number might be setup /etc/xinet.d/ssh instead. Also try commenting out the old 443 entries in /etc/services and replace it with the new ones.

Also check "man sshd_config". The port entry in ssh_config is for the client.

Last edited by jschiwal; 04-18-2007 at 07:36 PM.
 
Old 04-19-2007, 12:18 AM   #4
winkydo
Member
 
Registered: Jan 2005
Location: fort worth, tx
Distribution: fedora core
Posts: 30

Original Poster
Rep: Reputation: 15
awesome. cgjones gets the prize on this one. it's sshd_config. i misread... http://www.redhatmagazine.com/2007/0...h-server-uses/ ...chaulk this one up to being to busy to slow down and look at what your doing.

and yes, i know 443 is for secure http. i've ran into some locations that block 22 out so i change my default port to one i know will be open.
 
Old 04-19-2007, 10:44 AM   #5
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
Quote:
Originally Posted by winkydo
and yes, i know 443 is for secure http. i've ran into some locations that block 22 out so i change my default port to one i know will be open.
Cool. I just wanted to avoid a possible problem down the road.
 
Old 04-22-2007, 04:36 PM   #6
winkydo
Member
 
Registered: Jan 2005
Location: fort worth, tx
Distribution: fedora core
Posts: 30

Original Poster
Rep: Reputation: 15
yea and i actually decided i would not foward this port to the internet anyways. i know the debate is out on weather it's safe to just change the port and restrict the ssh login to a secure account only, or just not allow it. i think i'm going to go with a vpn solution that will allow me more than just ssh access to my server network.
 
  


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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
ssh change port Longinus Linux - Newbie 14 12-16-2006 03:34 PM
Change ssh port number israel Linux - Software 2 08-30-2006 05:18 AM
can i change the host's ssh port? guardianx Linux - Software 7 07-11-2005 01:47 PM
Change SSH Port? flamesrock Linux - Software 6 10-02-2004 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration