I am trying to generate a ssh key pair to retrieve for my professor to load onto a server.
I have a Macbook Air (2015) and I followed instructions given online at siteground.com for Mac OS generation.
This is the code:
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
Now the issue is that when I try to access it this is what happens: I get a permission denied. How can I retrieve the .pub key to send it over?
(base) MacBook-Air-2:~ /Users/.ssh/id_rsa.pub -bash: /Users/.ssh/id_rsa.pub: Permission denied
Thanks!
Question was solved by qasimalbaqali, I will use this one as the accepted question since he only left comments. Thanks again!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With