14
3
I apologize in advance for the dumb question, but I'm trying to set up an SSH key for GitHub on my Macbook. I open up the terminal and go to the root directory (my username) and type "cd ~/.ssh" and it says "No such file or directory". However, when I input "ssh -v", it lists:
OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
Which according to another website means I have it installed. Yet I can't find the directory anywhere...
So I have two questions: How do I fix this? And where is the .ssh directory supposed to be?
2Slhck's answer is probably right on, I just wanted to point out that the root directory is not your user name, that is your home directory. The root directory is where you go if you type
cd /
, it is the equivalent ofC:
in Windows or clicking on your hard drive in Finder. – terdon – 2013-08-22T12:41:59.763