mac上生成ssh

bogon:~ xuzn$ git config --global user.name "xuzn"

bogon:~ xuzn$ git config --global user.email "zhennan.xu@fenbeitong.com"

bogon:~ xuzn$ cd ~/.ssh

bogon:.ssh xuzn$ cd ~

bogon:~ xuzn$ rm -rf .ssh/

bogon:~ xuzn$ ssh-keygen -t rsa -C “zhennan.xu@fenbeitong.com”

Generating public/private rsa key pair.

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

Created directory '/Users/xuzn/.ssh'.

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /Users/xuzn/.ssh/id_rsa.

Your public key has been saved in /Users/xuzn/.ssh/id_rsa.pub.

The key fingerprint is:

SHA256:JUoiWQzjqp6vVFzL2bowa1GhvBXK+owqttIg5O6F21k “zhennan.xu@fenbeitong.com”

The key's randomart image is:

+---[RSA 2048]----+

|  oo.            |

| . +.o           |

|  * +.+ . .      |

| o.*o=+. o       |

|+ .o++..S        |

|+ooo  .          |

|+=++.E           |

|=+*+* .          |

|BB== .           |

+----[SHA256]-----+

bogon:~ xuzn$ ssh-add private

private: No such file or directory

bogon:~ xuzn$ ls

Desktop Downloads Movies Pictures

Documents Library Music Public

bogon:~ xuzn$ pwd

/Users/xuzn

bogon:~ xuzn$ cd .ssh

bogon:.ssh xuzn$ ls

id_rsa id_rsa.pub

bogon:.ssh xuzn$ cat id_rsa

-----BEGIN RSA PRIVATE KEY-----

MIIEogIBAAKCAQEA1LfwSsVPJ2XViYBj/sAyWd4WAJ9LPi5mfLxr9FNFAlbT7wfF

sQZ9C8CeL3y0+wrwJ9Eagw+2dcjZdB9Mmz+Ee8D7mpXWXS+lmS3C7byaiZnLxoOk

1h5pjF/peWcZAmVg1PI/kKII8hyxGiN2CYeR+C6zFuwAef+9MvWohzuXoatYhdJx

xPIt7/hOZHM9EKmaKggLyWQZjaZ1Tzd59GVYN+3tlyG8oYEQ/YnSTEh8YkqJb3/q

UMwAJyJURThU1jGljGeY7i4j3WtBCg5ywQ6NFbk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QHk8eDR4E25rh0ghebprWOyQ1IjhdSaHmlILLyRfZYu2bjkjBnz713WOyB

Y1bpAoGALxeEmhImGO3ZYH9nAeoD+yDLRTkYH4kqQCPX77DpM5usuOFWWYOwv9Z9

zi01EGSyrIWFNjLUi3h2oepBol4pZREnFglS4r/2lCJwQQIArv3aWWH8QYi4XkAq

z+6MM30Wywo7pUs/p9V/F8h6+a6o2gwpDq9/0xJjwVj1JImt+Vs=

-----END RSA PRIVATE KEY-----

bogon:.ssh xuzn$ cat id_rsa.pub 

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUt/BKxU8nZdWJgGP+wDJZ3hYAn0s+LmZ8vGv0U0UCVtPvB8WxBn0LwJ4vfLT7CvAn0RqDD7Z1yNl0H0ybP4R7wPualdZdL6WZLcLtvJqJmcvGg6TWHmmMX+l5ZxkCZWDU8j+QogjyHLEaI3YJh5H4LrMW7AB5/70y9aiHO5ehq1iF0nHE8i3v+E5kcz0QqZoqCAvJZBmNpnVPN3n0ZVg37e2XIbyhgRD9idJMSHxiSolvf+pQzAAnIlRFOFTWMaWMZ5juLiPda0EKDnLBDo0VuTsw4vYYaNpNe0vm3H+MFEZI7MA/FRzfU7Nmharl9mqNGjbqqCvaTAEk+qY0hoqd “zhennan.xu@fenbeitong.com”


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

乐观的Terry

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值