제 학교의 CS 프로그램이 프로젝트에 gitlab을 사용하고 있습니다.gitlab에 연결할 수 없습니다
내가해야 할 일은 SSH 키를 생성하여 내 gitlab 프로필에 추가하는 것입니다. 나는 "[email protected]"라고 말할 수있는 "$의 your_email"를 변경해야합니다
ssh-keygen -t rsa -C "$your_email"
을 아마도 : 그들은과 같이, 그것을 생성하는 지시를했다? 어쨌든, 키를 생성하고 내 gitlab 프로필에 넣어. 열쇠를 받아들이고 SSH 키 파일을 생성했을 때 얻은 발자국과 일치하는 발자국을 보여주기 때문에 정확하게 작동한다고 가정합니다.
다음 단계에서는 gitlab에 프로젝트를 만들었습니다. 로컬 git 저장소를 만들고 서버에 푸시 할 수있는 방법을 알려줍니다.
git config --global user.name "MyFirst Middle LastName"
git config --global user.email "[email protected]"
mkdir homeworks2125
cd homeworks2125
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin [email protected]:myUserName/homeworks2125.git
git push -u origin master
하지만, 내가 밀어하려고 할 때마다, 난 그냥 얻을 : 나는 GitHub의 또는 아무것도 전에 자식을 사용하여 권한 부여 문제의 종류를 본 적이 있기 때문에이 나를 미치게됩니다
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
.
ssh 키에 문제가있는 것 같지만 확실하지 않습니다. 어떤 도움이 필요합니까?
편집 : 확실하지이 관련 정보는,하지만 난 실행하면 여기에 무슨 일 있는지 "ssh를 -vvv [email protected]"
G:\homeworks2125 [master]> ssh -vvv [email protected]
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to gitlab.cs.uno.edu [137.30.120.92] port 22.
debug1: Connection established.
debug1: identity file /c/Users/Jonathan/.ssh/identity type -1
debug3: Not a RSA1 key file /c/Users/Jonathan/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /c/Users/Jonathan/.ssh/id_rsa type 1
debug1: identity file /c/Users/Jonathan/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host