Je rencontre un problème étrange en essayant de configurer ssh. Je suis plus habitué à Linux qu'à MacOS. Quelqu'un peut-il m'expliquer ce qui se passe ici ?
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
Les ACL sont définies comme suit :
nnyby@nothing ~ % ls -ael ~
total 96
drwxr-xr-x+ 26 nnyby staff 832 Apr 2 09:47 .
0: group:everyone deny delete
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 6148 Apr 1 13:44 .DS_Store
drwx------ 10 nnyby staff 320 Apr 1 13:44 .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 5271 Apr 2 09:21 .zsh_history
drwx------@ 3 nnyby staff 96 Apr 1 09:53 Applications
drwx------+ 14 nnyby staff 448 Apr 1 22:56 Desktop
0: group:everyone deny delete
drwx------+ 10 nnyby staff 320 Apr 2 09:47 Documents
0: group:everyone deny delete
drwx------@ 25 nnyby staff 800 Apr 1 22:39 Downloads
0: group:everyone deny delete
drwx------@ 66 nnyby staff 2112 Apr 1 09:52 Library
0: group:everyone deny delete
drwx------+ 4 nnyby staff 128 Nov 25 14:23 Movies
0: group:everyone deny delete
drwx------+ 4 nnyby staff 128 Mar 17 20:50 Music
0: group:everyone deny delete
drwx------+ 30 nnyby staff 960 Apr 1 22:39 Pictures
0: group:everyone deny delete
drwxr-xr-x+ 4 nnyby staff 128 Oct 24 14:34 Public
0: group:everyone deny delete
drwxr-xr-x 4 nnyby staff 128 Mar 20 10:40 dist
drwxr-xr-x 9 nnyby staff 288 Apr 1 14:12 src
nnyby@nothing ~ % ls -ael ~/..
total 0
drwxr-xr-x 6 root admin 192 Oct 23 20:37 .
drwxr-xr-x 22 root admin 704 Mar 28 11:54 ..
-rw-r--r-- 1 root wheel 0 Oct 17 18:40 .localized
drwxrwxrwt 5 root wheel 160 Oct 17 18:40 Shared
drwxr-xr-x+ 11 ctladmin staff 352 Oct 24 14:34 ctladmin
0: group:everyone deny delete
drwxr-xr-x+ 26 nnyby staff 832 Apr 2 09:47 nnyby
0: group:everyone deny delete
De même, je ne peux pas générer de clés publiques et privées :
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
Je peux créer un répertoire préfixé par un point avec un autre nom, sans problème :
user@nothing ~ % mkdir ~/.abc
user@nothing ~ %
Si je le fais mkdir /tmp/.ssh; mv /tmp/.ssh ~/
le mv
Le processus se bloque et utilise tout mon processeur jusqu'à ce que je redémarre !
Alors, comment faire pour que mon .ssh
répertoire ?