git over ssh with non-default port
 

git over ssh with non-default port

 
We’ve recently changed hosting provider and are having trouble getting git working.

ssh works with authorized_keys so:

Code:

$ ssh [email protected] -p NNNNN


works, giving me a shell (albeit a jailshell) and I can see the repos in the right place, owned by the user I am connecting as with read-write permission. git is found in the path.

However, if I try to clone the repo, I get:

Code:

$ git clone ssh://[email protected]:NNNNN/path/to/repo.git
Cloning into 'repo'...
ssh: connect to host myhost port NNNNN: Connection timed out
fatal: Could not read from remote repository. Please make sure you have the correct access rights
and the repository exists.


This isn’t a temporary failure: it repeats consistently.

 

Previous autocompletion not working in Visual Studio. Unity Project.
Next [xubuntu] I am Forced to Re-add Drivers after an Upgrade | 18.04
 

About author

You might also like

Ubuntu Dsicussions 0 Comments

[ubuntu] MS Wireless Keyboard and Mouse 3050 instruction manual

Hi all, Ubuntu 18.04 Gnome desktop Just purchased MS Wireless Keyboard and Mouse 3050, 4 days ago. MS Wireless Keyboard and Mouse 3050 https://www.microsoft.com/accessorie…3050/pp3-00001 But there is no instruction manual

Ubuntu Dsicussions 0 Comments

Not able to get a working xrdp session

Hello out there, my use case is to get an rdp session to an Ubuntu 18.04.5 LTS System. So I installed xrdp and output of “systemctl status xrdp” shows ●

Ubuntu Dsicussions 0 Comments

Design and Web team summary – 16th September 2020

The web team here at Canonical run two-week iterations. Here are some of the highlights of our completed work from this iteration. Contents1 Web squad1.0.1 CloudNative Days Tokyo 20201.0.2 New

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply