Estoy tratando de agregar la clave SSH para ~/.ssh/configusarecho "IdentityFile ~/.ssh/my-ssh-key" >> ~/.ssh/config
Me esta mostrando error -bash: /Users/gaurav/.ssh/config: Permission denied
que estoy haciendo mal?
Permiso a carpetas
total 64
-rw-r--r-- 1 root staff 85 Apr 15 12:59 config
-rw------- 1 gaurav staff 1766 Jan 4 23:11 github_rsa
-rw-r--r--@ 1 gaurav staff 404 Mar 20 09:50 github_rsa.pub
-r-------- 1 gaurav staff 1766 Mar 20 10:05 google-sb-server
-rw-r--r-- 1 gaurav staff 388 Mar 20 10:05 google-sb-server.pub
-rw------- 1 gaurav staff 3247 Jan 5 10:37 id_rsa
-rw-r--r-- 1 gaurav staff 726 Jan 5 10:37 id_rsa.pub
-rw-r--r-- 1 gaurav staff 2230 Mar 20 12:45 known_hosts
terminal
sierra
permission
ssh
twister_void
fuente
fuente

chmod go-w ~/chmod 700 ~/.sshchmod 644 ~/.ssh/authorized_keysgauravposee los archivos / carpetas y noroot:chown user:gaurav authorized_keysychown user:gaurav ~/.sshssh-keygen) en elauthorized_keysarchivo del usuario en el servidor.sshcarpeta correcta que ha estado modificando. Si no, utilícelousermod -d ~/ gauravpara solucionar el problema.service ssh restart.sshcarpeta del usuario local e inicie sesión:ssh [email protected]¡La mejor de las suertes!
fuente