When you sign up with your Apple ID , you can provide valuable feedback to other community members by upvoting helpful replies and User Tips .
I'm running into a strange problem trying to set up ssh. I'm more used to Linux than macOS. Can someone explain to me what's going on here?
user@nothing ~ % mkdir ~/.ssh mkdir: /Users/user: No such file or directory user@nothing ~ % ls -ld ~ drwxr-xr-x+ 27 user staff 864 Apr 1 13:49 /Users/user user@nothing ~ % ls -ld ~/.ssh ls: /Users/user/.ssh: No such file or directory
Similarly, I can't generate public and private keys:
user@nothing ~ % ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/user/.ssh/id_rsa): Could not create directory '/Users/user/.ssh': No such file or directory Enter passphrase (empty for no passphrase): Enter same passphrase again: Saving key "/Users/user/.ssh/id_rsa" failed: No such file or directory
I can create a dot-prefixed directory with another name, no problem:
user@nothing ~ % mkdir ~/.abc user@nothing ~ %
If I do `mkdir /tmp/.ssh; mv /tmp/.ssh ~/`, the `mv` process hangs, and uses all my CPU until I restart!
So, how do I make my `.ssh` directory?
cooltoad57 wrote:
user@nothing ~ % mkdir ~/.ssh
mkdir: /Users/user: No such file or directory
user@nothing ~ % ls -ld ~
drwxr-xr-x+ 27 user staff 864 Apr 1 13:49 /Users/user
user@nothing ~ % ls -ld ~/.ssh
ls: /Users/user/.ssh: No such file or directory
user@nothing ~ % ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/user/.ssh/id_rsa):
Could not create directory '/Users/user/.ssh': No such file or directory
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "/Users/user/.ssh/id_rsa" failed: No such file or directory
user@nothing ~ % mkdir ~/.abc
user@nothing ~ %
From the Finder>Go>Go to Folder, copy and paste:
~/.ssh
please advise...
Open the Terminal window on your MAC (by default you will be in ~/ dir) copy and paste:
ls -la
This will list all the files & folder including hidden folders.
When I try to "Go to Folder": ~/.ssh in Finder, I get the message "The folder can't be found."
Here is the output of `ls -la`:
nnyby@nothing ~ % ls -la total 104 drwxr-xr-x+ 28 nnyby staff 896 Apr 2 11:28 . drwxr-xr-x 6 root admin 192 Oct 23 20:37 .. -r-------- 1 nnyby staff 7 Mar 28 11:24 .CFUserTextEncoding -rw-r--r--@ 1 nnyby staff 10244 Apr 2 11:23 .DS_Store drwx------ 2 nnyby staff 64 Apr 2 11:22 .Trash -rw------- 1 nnyby staff 751 Apr 1 13:43 .bash_history drwx------ 41 nnyby staff 1312 Nov 7 14:29 .bash_sessions drwx------ 3 nnyby staff 96 Nov 15 11:40 .config drwxr-xr-x 4 nnyby staff 128 Nov 1 11:27 .emacs.d -rw-r--r-- 1 nnyby staff 53 Nov 13 12:28 .gitconfig drwx------ 3 nnyby staff 96 Nov 15 11:40 .local -rw------- 1 nnyby staff 118 Mar 22 09:59 .python_history -rw------- 1 nnyby staff 12554 Apr 1 19:37 .viminfo -rw------- 1 nnyby staff 5838 Apr 2 11:23 .zsh_history drwx------@ 3 nnyby staff 96 Apr 1 09:53 Applications drwx------+ 15 nnyby staff 480 Apr 2 10:09 Desktop drwx------+ 10 nnyby staff 320 Apr 2 09:47 Documents drwx------@ 25 nnyby staff 800 Apr 2 10:58 Downloads drwx------@ 66 nnyby staff 2112 Apr 1 09:52 Library drwx------+ 4 nnyby staff 128 Nov 25 14:23 Movies drwx------+ 4 nnyby staff 128 Mar 17 20:50 Music drwx------+ 31 nnyby staff 992 Apr 2 10:58 Pictures drwxr-xr-x+ 4 nnyby staff 128 Oct 24 14:34 Public drwxr-xr-x 4 nnyby staff 128 Mar 20 10:40 dist drwxr-xr-x 9 nnyby staff 288 Apr 1 14:12 src A forum where Apple customers help each other with their products. Get started with your Apple ID. Learn more Sign up This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Community Terms of Use. See how your data is managed...