码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu git ssh不通

时间:2015-10-12 14:12:55      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:

xyh@ubuntu-64:~$ ssh -v git@danxinben.com                                                                            
OpenSSH_5.9p1 Debian-5ubuntu1.7, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/xyh/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to danxinben.com [10.1.10.202] port 22.
debug1: connect to address 10.1.10.202 port 22: Connection refused
ssh: connect to host danxinben.com port 22: Connection refused

 

解决办法:vim .ssh/config

Host git.danxinben.com
User xuyonghong
Hostname git.danxinben.com
PreferredAuthentications publickey
IdentityFIle ~/.ssh/id_rsa
port 10022

ubuntu git ssh不通

标签:

原文地址:http://www.cnblogs.com/xuyh/p/4871310.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!