I am logged in in my local PC (Fedora 24) as
rperez. From this PC I needed to connect to a remote server through
sshfs so I generated a private/public key by running
ssh-keygen. Using the following command I am able to connect to the server without any problem:
sshfs rperez@server_ip:/home/rperez -p 2051 ~/dev -o auto_cache,reconnect
Now I have two Github account: one to be used from work, one to be used from home for personal projects. I would like to connect to both using SSH so I have setup the first one using the generated key for
rperez and again that works fine.
I am trying to setup the second one (the personal) on the same PC so I did run this command:
ssh-keygen -t rsa -C "firstname.lastname@example.org"
I have created the file
~/.ssh/config with the following content:
#rperez account Host github.com-rperez HostName github.com User git IdentityFile ~/.ssh/id_rsa #reypm account Host github.com-reypm HostName github.com User git IdentityFile ~/.ssh/id_rsa_reynierpm #Server Host <server_ip> IdentityFile ~/.ssh/id_dsa
And this is where my problem started. Now running the following commands:
sshfs rperez@server_ip:/home/rperez -p 2051 ~/dev -o auto_cache,reconnect sshfs rperez@server_ip:/home/rperez -p 2051 ~/dev -o auto_cache,reconnect,IdentityFile=~/.ssh/id_rsa
Return this error:
read: Connection reset by peer
I should add, regardless the current problem, that I am not able to connect either to any Github repository
What is wrong with this configuration?
Update: verbose output
ssh -vvv -p 2051 rperez@server_ip OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 Bad owner or permissions on /home/rperez/.ssh/config