LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-09-2003, 03:56 PM   #1
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
Question SSH Port


Can i run SSH on a different port besides 22?

Situation:
I have 2 linux machines (both slackware 9) on my lan.
I have a cable router/switch
I currently have port 22 mapped to my first linux box.
Now i want to be able to SSH into my second linux box.

If this is possible, which i'm sure it is, what files do i need to change and what is a good port?

Thanks
 
Old 06-09-2003, 04:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
in your sshd_config file just set "Port 1234" or whatever you prefer.
 
Old 06-09-2003, 04:17 PM   #3
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Original Poster
Rep: Reputation: 47
i don't need to change anything in my /etc/services file

right now it has lines for tcp and udp on port 22

thanks
 
Old 06-09-2003, 04:52 PM   #4
cyberskye
Member
 
Registered: Feb 2003
Location: The City by the Bay
Posts: 116

Rep: Reputation: 15
do you run it out of xinetd or standalone?
 
Old 06-09-2003, 05:00 PM   #5
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Original Poster
Rep: Reputation: 47
xinetd
 
  


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
ssh through port 80? acromi General 7 03-15-2009 04:01 PM
SSH over port 80 or 21 jeucken Linux - Networking 2 08-12-2004 12:03 PM
SSH to another port? TheRealDeal Linux - Networking 4 06-02-2004 07:39 PM
How to open the port 22 (ssh)? dicou Linux - Newbie 5 05-02-2004 01:12 PM
SSH port fowarding magyartoth Linux - Networking 10 05-01-2002 02:27 PM


All times are GMT -5. The time now is 11:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration