LinuxQuestions.org
Register a domain and help support LQ
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-04-2012, 08:19 PM   #1
Shimdidly
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Rep: Reputation: Disabled
Halp!


How to you change the default port that SSH connects to, so I don't have to manually put ssh -p 12345 user@example.com, instead it already knows that I want to use port 12345 as a default?

Please halp! I've tried Googling it like 10 times but all they want to tell me is how to change which port the server listens on.
 
Old 04-04-2012, 08:30 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
http://www.openbsd.org/cgi-bin/man.c...nfig&sektion=5
Enjoy
 
1 members found this post helpful.
Old 04-05-2012, 10:44 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,950

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by Shimdidly View Post
How to you change the default port that SSH connects to, so I don't have to manually put ssh -p 12345 user@example.com, instead it already knows that I want to use port 12345 as a default?

Please halp! I've tried Googling it like 10 times but all they want to tell me is how to change which port the server listens on.
Please read the posting guidelines...a subject of "Halp!" (assuming you mean HELP), doesn't tell anyone anything about your question. And chrism01 gave some good advice...but I'd recommend against doing it. Simply because if you ever connect to any OTHER SSH server, you'll have to specify THAT port, putting you right back where you started. It would also making scripting anything more difficult too.

If you're only ever going to connect to SSH resources that ALL run on the same port, then you're all set. Otherwise, I wouldn't.
 
1 members found this post helpful.
  


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
Halp me use git! alaios Linux - Software 3 03-24-2011 11:00 AM
[SOLVED] Anyone know Prolog? Need halp steve296 Programming 10 07-21-2010 03:47 PM
Need halp with rpmbuild command Monkey Man Fedora 3 10-06-2006 09:10 PM
Please halp I can't compile c++ file malb Linux - Newbie 9 07-25-2005 07:52 PM
font problems, halp mrb Linux - Newbie 1 05-15-2004 02:12 PM


All times are GMT -5. The time now is 12: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration