2013-02-14 4 views
0

Cygwin Terminal을 내 윈도우에 설치했습니다. 그리고 저는 리눅스 서버에 가지고있는 git 저장소를 다음과 같이 복제하려고 시도합니다 :windows git clone from Linux

$ git clone ssh://some.server.com/somename 
Cloning into 'somename'... 
[email protected]'s password: 

서버에 SSL 인증서가 있다는 것을 알고 있습니다.

비밀번호없이 연결하려면 어떻게해야합니까? 서버의 인증서를 어떻게 고려할 수 있습니까?

+0

[암호없이 로그인 ssh] (http://linuxproblem.org/art_9.html) –

답변

1

복사 mathias kettner's tutorial

처음부터 붙여 사용자 A와 같은에 로그인 및 인증 키 쌍을 생성한다.

[email protected]:~> ssh-keygen -t rsa 
Generating public/private rsa key pair. 
Enter file in which to save the key (/home/a/.ssh/id_rsa): 
Created directory '/home/a/.ssh'. 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/a/.ssh/id_rsa. 
Your public key has been saved in /home/a/.ssh/id_rsa.pub. 
The key fingerprint is: 
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 [email protected] 

지금 (디렉토리가 이미 잘되는,있을 수 있습니다) B.에 사용자 B와 같은 디렉토리 ~/스푸핑을 만들 SSH를 사용 : 마지막으로

[email protected]:~> ssh [email protected] mkdir -p .ssh 
[email protected]'s password: 

암호를 입력하지 마십시오 a가 b의 @의 B의 새로운 공개 키의 추가 : 스푸핑/authorized_keys에와 b의 암호를 마지막으로 한 번 입력하면 암호없이 A와 같은에서 B로 B에 로그인 할 수 있습니다 지금부터

[email protected]:~> cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' 
[email protected]'s password: 

을 :

를3210
[email protected]:~> ssh [email protected] hostname 
B 
+0

지금 시도하고 있습니다. 창문에서도 작동해야한다고 생각하십니까? – Aris

+0

나는 윈도우 클라이언트에서 [git-bash] (https://openhatch.org/missions/windows-setup/install-git-bash)의 지시 사항을 사용했다. 귀하의 Windows 컴퓨터에서 자식을 사용해야하고 cygwin이 작동하지 않는다면 나는 그것을 시도하는 것이 좋습니다. –