Cannot connect to gitlab
I want to pull the newest update on my gitlab, I hit git pull origin master, it returns connection reset by port 22, i keep trying to do
ssh-agent then ssh-add ~/.ssh/
ssh -T firstname.lastname@example.org but still get
Connection reset by 126.96.36.199 port 22
ssh -T email@example.com not work (does not return a Welcome message), then maybe your network environment does not allow SSH.
Generally, ingress SSH is forbidden in a corporate setting, but SSH URL for cloning should still work!
Also, ssh-agent is only needed if your private key is passphrase-protected (and therefore encrypted). Try first with a passphrase-less key, to see if it makes any difference.
See also questions close to this topic
How to fetch only branch names from remote git repo?
How can I get remote refs list (only names and commit id) without fetching objects?
WebUI is not answer obviously.
All that I found is remote
$ git remote -v show origin * remote origin Fetch URL: https://git.git Push URL: https://git.git HEAD branch: main Remote branch: refs/remotes/origin/master stale (use 'git remote prune' to remove) Local branch configured for 'git pull': master merges with remote master
Having trouble with git push - unexpected disconnect
I have been trying to commit and push my code to git but I am getting the following error:
C:/Program Files/Git/bin/git.exe push origin HEAD:refs/heads/master error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8) send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date
Previously it was telling me that the file was too large, but now this is happening. Does anyone know how to help or do you need more info?
I am trying to place a git pre-commit hook which can validate my feature files for tags
I have linked my Cucumber scenarios to my XRAY test cases. I want to force the process that every cucumber scenario should have test case id as tag (eg @QA-1234). If any scenario does not have this kind of tag then git should warn and abort the commit.
Is it possible using a git hook? Or please suggest anything else.
I am using Cucumber with Java on windows machines.
Cannot connect via ssh to a device (only on Widonws10, on Linux and MacOs it works fine)
As described in the title: I cannot connect via ssh to a device (only with Widonws10, on Linux and MacOs it works fine). The ip address of the device is the following: 192.168.1.61
Trying to exedcute :
On Windows 10 returns
ssh: connect to host 192.168.1.61 port 22: Connection timed out
Please note the same command works fine on Linux and MacOs.
(Ping fails as well , only on Windows)
I tried to disable the Firewall same result, any idea?
What are the functions of id_rsa, id_rsa.pub, authorized_keys, config, and known_hosts in .ssh?
I have three Mac computers, one is a Mac mini I use as a private GitHub and server and it has a named domain e.g. XYZ.com and uses DynDNS to keep that XYZ.com associated with my non-static external IP address, which is assigned and changed randomly by my provider. The other two Mac computers are used for development work, plus some remote AWS and Azure computers used by my clients. On my projects, I routinely set up ssh to connect without requiring a password. Here is my current situation:
From Mac-1, I can ssh to Mini using Mini.local, e.g.
ssh Mini.localand it works fine. I can also do
ssh XYZ.comand that works also. However,
git clone git@XYZ.com:repo/project.gitrequires me to input the Mini password for the account git on the Mini computer.
From Mac-2, I can ssh to Mini using Mini.local, e.g.
ssh Mini.localand it's fine. BUT,
ssh XYZ.comdoes not work. BTW, all of these have the same username. Again
git clone git@XYZ.com:repo.project.gitworks, but have to enter Mini password again.
I've read and read, carefully making sure my id_rsa.pub is on all of the computers in question. I've gotten so confused by different solutions that I really would like a clear explanation of the use of the various files mentioned in the question.
I know that I create a secret ssh key and that goes into
~/.ssh/id_rsa. Protected as 600. Also, I THINK that the matching public ssh key goes into
~/.ssh/id_rsa.puband can be distributed to anyone and is usually in
~/.ssh/id_rsa.pubprotected as 622.
Some solutions talk about the
~/.ssh/configfile, others don't mention it. The instructions for using it are not clear, at least to me. Others talk about
authorized_keys, but it's not clear when they are used or why. Each example differs.
Is there a clear breakdown for different cases of the best practice of how to use these files and what should be in them. I desire to mostly use one secret rsa key with one public key that I distribute. I want git to use the same set of keys as all other communications such as sftp, etc.
Jupyter Lab remote control problem & How to interact with Jupyter cell?
I'm not familiar with computers. Recently I would like to do some calculation with GPU. So I want to access to my lab's GPU. Here's the steps I did.
- I need to type
- After logged in, I get to a place "A". However, one cannot access to GPU unless we go to other place "B". That is, I need to type
ssh -x other_place_B
and then I can get access to GPU (with nvidia-smi valid)
Since I use my lab's device remotely, I followed the tutorial to get remotely use Jupyter-lab. (https://towardsdatascience.com/how-to-connect-to-jupyterlab-remotely-9180b57c45bb)
I can successfully remotely get access to the Jupyter-Lab if I open the Jupyter-Lab in "A". However, in this situation I cannot use GPU. So I need to go to "B". But I cannot successfully get access to Jupyter-Lab in this situation.
Sorry for the bad description of my problem, since I'm totally not familiar with things like linux and ssh. So my question is if there is anyway to remotely access Jupyter in B?
I also tried to type
!ssh -x other_place_B
in the jupyter cell. It requires me to type the password to get to "B", but I cannot find anywhere for me to type the password.
Sorry for the bad description again and thanks for reading my problem.
How to install gitlab with mounted external volume? Installation fails
Hello I am trying to install gitlab as a docker image. The host is anUbuntu 20.04 Server Docker Version:
Server: Engine: Version: 20.10.2 API version: 1.41 (minimum version 1.12) Go version: go1.13.8 Git commit: 20.10.2-0ubuntu1~20.04.2 Built: Mon Mar 29 19:10:09 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.4-0ubuntu1~20.04.2 GitCommit: runc: Version: 1.0.0~rc95-0ubuntu1~20.04.1 GitCommit: docker-init: Version: 0.19.0 GitCommit:
I use the docker engine with following run command:
docker run \ --detach \ --publish 3443:443 \ --publish 8091:80 \ --publish 322:22 \ --name gitlab \ --restart always \ --volume /home/mydockerusr/myMountedDrive/public/gitlab/config:/etc/gitlab \ --volume /home/mydockerusr/myMountedDrive/public/gitlab/logs:/var/log/gitlab \ --volume /home/mydockerusr/myMountedDrive/public/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest
As long as I install the gitlab without mapping the external drive, everything runs fine. But if I use a mounted path the installation fails and runs in an endless loop
My mount-Code in fstab is:
https://webdav.myCloud.provider.com /home/mydockerusr/myMountedDrive davfs rw,auto,user,uid=1001,gid=1009,_netdev 0 0
The mount is without problem. Tha data folders are available.
tried the same on a local Ubuntu 20.04 VM. with the same bad result. All tries without using mounted datafolder works fine. So I expect the problem related to the userrights.
Any idea? Can I provide additional information to fix this? Thank you in advance
Needs keyword in gitlab ci is not running
I am new to gitlab ci. Trying to run job based on
needskeyword in gilab ci. Job
needskeyword which should run as soon as when
Compile-devjob is successfully run. But both
install-devare running sequentially not running once
Compile-devjob completes. Can someone explain why this is happening?
sample ci to understand flow
stages: - compile - unit_test - integration_test - install Compile-dev: stage: compile tags: - v01 script: - echo "Maven compileing" - mvn compile UnitTest-dev: stage: unit_test tags: - v01 script: - echo "Running unit test" - mvn clean test artifacts: when: always expire_in: 1 week reports: junit: - target/surefire-reports/TEST-*.xml test-dev-case1: stage: integration_test tags: - v01 before_script: - echo "Job one for test" script: - echo "This job tests something" - mvn verify -P qa-pipeline artifacts: when: always paths: - target\cucumber-html-reports\ test-dev-case2: stage: integration_test tags: - v01 before_script: - echo "Job one for test" only: refs: - CICD_1 script: - echo "This job tests something" - mvn verify -P qa-pipeline artifacts: when: always paths: - target\cucumber-html-reports\ test-dev-case3: stage: integration_test tags: - v01 before_script: - echo "Job one for test" only: refs: - master script: - echo "This job tests something" - mvn verify -P qa-pipeline needs: ["Compile-dev"] artifacts: when: always paths: - target\cucumber-html-reports\ test-dev-case4: stage: integration_test tags: - v01 before_script: - echo "Job one for test" rules: - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" script: - echo "This job tests something" - mvn verify -P qa-pipeline artifacts: when: always paths: - target\cucumber-html-reports\ install-dev: stage: install tags: - v01 script: - mvn install -DskipCukes=true needs: ["Compile-dev"]
git diff on specified directory in "git web GUI"
Is there any way to compare the two branches only in a special folder?
For example, append something to git URL such as below: