我正在尝试生成一个ssh密钥对以供我的教授检索,以便加载到服务器上。
我有一台Macbook Air (2015),我遵循了siteground.com上关于Mac生成的在线说明。
代码如下:
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/.ssh/id_rsa.
Your public key has been saved in /Users/.ssh/id_rsa.pub.
The key fingerprint is:
vaRiOusLeTteRs
The key's randomart image is:
----Itookthisout现在的问题是,当我试图访问它时,会发生这样的情况:我得到一个拒绝的许可。如何检索.pub密钥以将其发送过来?
(基础) MacBook-Air-2:~ /Users/.ssh/id_rsa.pub -bash: /Users/.ssh/id_rsa.pub:权限被拒绝
谢谢!
发布于 2019-11-21 01:44:09
这个问题是由qasimalbaqali解决的,我将使用这个问题作为接受问题,因为他只留下评论。再次感谢!
https://stackoverflow.com/questions/58957083
复制相似问题