Why can't I create a .ssh directory on macOS 10.15.4?
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?
MacBook Air 13", macOS 10.15