Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing own ssh key generated in a Macbook

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!

like image 983
rtz Avatar asked Oct 18 '25 01:10

rtz


1 Answers

Question was solved by qasimalbaqali, I will use this one as the accepted question since he only left comments. Thanks again!

like image 96
rtz Avatar answered Oct 20 '25 14:10

rtz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!