mac上学习使用GitLab(一)

来源:互联网 发布:淘宝生意参谋在哪里 编辑:程序博客网 时间:2024/06/04 11:33

1.mac上自带ssh

首先在命令行输入:ssh -v 

如果出现

usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]

           [-D [bind_address:]port] [-E log_file] [-e escape_char]

           [-F configfile] [-I pkcs11] [-i identity_file]

           [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]

           [-O ctl_cmd] [-o option] [-p port]

           [-Q cipher | cipher-auth | mac | kex | key]

           [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]

           [-w local_tun[:remote_tun]] [user@]hostname [command]

这个表明ssh已经安装

2.生成ssh key

 ssh-keygen -t rsa -C "youremail@evervc.com"

这个时候

Generating public/private rsa key pair.

Enter file in which to save the key (/Users/yaoyao/.ssh/id_rsa): 

一定要先按回车

这个时候才会生成ssh文件夹

在用户名下面有一个.ssh的文件,里面有key


0 0