In OSX (Linux), how do I get to the SSH keys with my root directory?
feedback
|
migrated from stackoverflow.com Feb 20 '11 at 3:25
This question came from our site for professional and enthusiast programmers.
|
Not entirely sure what you are asking.... But for Linux ssh files (public rsa, authorized keys, etc) are stored in So for root they would be Not sure if this is the same for OSX though. | ||||
|
feedback
|
|
In OSX all ssh keys are generally stored under the user/.ssh directory Of course - you can move them anywhere if needed (may be needed for access to EC2 due to permissions) Chances are since you are asking - YOU MAY NOT HAVE AN SSH KEY GENERATED YET... So -let's start there first: From the terminal window simply run: ssh-keygen -d and you can then follow the prompts - Once complete if you were to browse to your terminal and then once it is opened simply type cd .ssh you should be able to view your ssh keys If you wish to copy the SSH key to another linux/nix based system simply use scp scp ~/.ssh/id_dsa.pub (or whatever name you gave it) www.servernameorIPaddress.com:/root/.ssh/authorized_keys2 I would suggest always using the -d option when doing the keyGen simply because RSA keys are generally not used in Version 2 of SSH. I hope that helps - if not feel free to ask for clarification and I will help you along. ---- one last note ---- If you are looking to use ROOT on your system - this link may help you a little bit: http://snowleopardtips.net/tips/enable-root-account-in-snow-leopard.html | |||
|
feedback
|
|
In OSX, SSH keys are stored in Bear in mind that you will need to activate the root user before you can log in using it on the client version of OSX. Be certain you know what you're doing and understand the risks before you enable the root user, especially if you're going to do so on a computer that arbitrary machines will be able to SSH into. | |||
|
feedback
|