I’m making an attempt to arrange a seamless ssh connection from one server to a different for the primary time. Whereas I feel I managed to create a person and becoming rsa keys simply positive, I am unable to truly join through ssh, as it’s giving me an
Permission denied (publickey,gssapi-keyex,gssapi-with-mic) error.
I’m on working a RHEL7 EC2 occasion within the Amazon AWS cloud.
Does anybody have an concept what’s going on right here or how I might repair it?
Here is what I did thus far:
- As root on my “grasp” (the server that’s being ssh’ed into from one other server) I created a brand new person that ought to deal with all of the ssh stuff:
useradd -m -d /residence/username -s /bin/bash username
- Then I modified to that person through
su - usernameand generated a rsa key pair to create the .ssh folder:
ssh-keygen -b 4096 -C "" -E sha256 -o -t rsa
- I created the authorized_keys file through
- I modified permissions utilizing:
chown -R username:username /residence/username/.ssh
chmod 700 /residence/username/.ssh
chmod 600 /residence/username/.ssh/authorized_keys
- I did all these steps once more on my “slave” server, however along with that I then copied the contents of the generated
id_rsa.pubfile from the slave server into the
authorized_keysfile on the grasp server
- Considering I used to be completed I attempted connecting from the slave server to the grasp server utilizing
ssh -tt -i /residence/username/.ssh/id_rsa username@masterserver, however then bought the error message
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
I might admire any assist I can get 🙂