git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: SSH with alternative port number?

From
Brandon Philips <brandon@ifup.org>
Date
Mar 6, 2006, 21:59 UTC
Message-ID
<20060306215939.GD14725@osuosl.org>
In-Reply-To
<20060306214418.66E153525CB@atlas.denx.de>
Hello Wolfgang-
man(5) ssh_config
Add something like this to your .ssh/config file:
Host example
	Hostname ssh.example.com
	Port 2222
	User wolfgang

Then use "example" as the hostname for the git commands instead of ssh.example.com.

Best,
	Brandon

-- http://ifup.org

On 22:44 Mon 06 Mar     , Wolfgang Denk wrote:
Show 18 quoted lines
> Hi,
> 
> is there any way to specify an alternative port number for SSH  based
> remote repository access?
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
> "Here's a fish hangs in the net like a poor man's right in  the  law.
> 'Twill hardly come out."     - Shakespeare, Pericles, Act II, Scene 1
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Wolfgang DenkNext: Belmar-Letelier
Message 2 of 3 in “SSH with alternative port number?”
  1. Wolfgang DenkMar 6, 2006
  2. Brandon PhilipsMar 6, 2006
  3. Belmar-LetelierMar 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.