Open citananda opened 4 years ago
Does regular "git clone" work with a string like that? There's no way to differentiate it from a regular user@host:path
string where the first path segment happens to be a number.
I don't know if we support it already or not but you'd have to use something like thessh://user@host:port/path
form instead.
Yes
git clone ssh://git@my-domain:30022/my-repo/my-project.git
output:
git clone ssh://git@my-domain:30022/my-repo/my-project.git
Cloning into 'my-project'...
remote: Enumerating objects: 7106, done.
remote: Counting objects: 100% (7106/7106), done.
remote: Compressing objects: 100% (2343/2343), done.
remote: Total 7106 (delta 4472), reused 7033 (delta 4405), pack-reused 0
Receiving objects: 100% (7106/7106), 51.27 MiB | 51.67 MiB/s, done.
Resolving deltas: 100% (4472/4472), done.
I tried ssh://user@host:port/path and I get this problem.
Failed to watch git repo: Warning: Permanently added '[my.domain]:30022,[my.ip]:30022' (ECDSA) to the list of known hosts.
Load key "/tmp/ssh-key557418727": invalid format
git@my.domain: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
: exit status 128(Error)
If RIO don't support this format, do you plan to soon ?
After some test, here is the situation. Using repo: ssh://git@my.domain:30022/my-repo/my-project.git is not connecting on port 30022 but on port 22
Describe the bug When I rio run from git on a custom port (eg 30022), rio is trying to git clone to port 22
To Reproduce
Expected behavior git access to port 30022
Kubernetes version & type (GKE, on-prem):
kubectl version
Type: Rio version:
rio info
Additional context
rio ps
output:ssh git@my.domain -p 30022
output: